OSDN Git Service

net: axienet: Fix probe error cleanup
authorRobert Hancock <robert.hancock@calian.com>
Thu, 11 Mar 2021 20:05:18 +0000 (14:05 -0600)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Mar 2021 00:51:32 +0000 (16:51 -0800)
commit59cd4f19267a0aab87a8c07e4426eb7187ee548d
treef9ddbafec77e23e9abbb3a728a87d3905c1bc0aa
parentf211ac154577ec9ccf07c15f18a6abf0d9bdb4ab
net: axienet: Fix probe error cleanup

The driver did not always clean up all allocated resources when probe
failed. Fix the probe cleanup path to clean up everything that was
allocated.

Fixes: 57baf8cc70ea ("net: axienet: Handle deferred probe on clock properly")
Signed-off-by: Robert Hancock <robert.hancock@calian.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/xilinx_axienet_main.c