]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: net: xgene: Fix error handling
authorMatthias Brugger <mbrugger@suse.com>
Tue, 3 May 2016 14:05:07 +0000 (16:05 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 May 2016 18:00:44 +0000 (14:00 -0400)
commit346dacfbb3e0bad970ed9fb985ae9e88a1a29f86
tree0e9a8948d66215575953b65b0c934ddeb5159054
parent79ed585d28f26d4e996b08c55a73941d811461b4
drivers: net: xgene: Fix error handling

When probe bails out with an error, we try to unregister the
netdev before we have even registered it. Fix the goto statements
for that.

Signed-off-by: Matthias Brugger <mbrugger@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/apm/xgene/xgene_enet_main.c