mlx4_en: Fix crash upon device initialization error
authorAlexander Guller <alexg@mellanox.com>
Sun, 9 Oct 2011 05:29:35 +0000 (05:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Oct 2011 03:42:58 +0000 (23:42 -0400)
commit4234144f5ca69a0a13d5adae6c94b6937c52541f
tree14a815179c01cd3cb99fa42d2926ca58e7d87a62
parent999bb4b3831abd6ad53023a0b8e5d304875927dd
mlx4_en: Fix crash upon device initialization error

Netdevice was being freed without being unregistered first if
mlx4_SET_PORT_general or mlx4_INIT_PORT failed.

Signed-off-by: Alexander Guller <alexg@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_netdev.c