]> git.karo-electronics.de Git - karo-tx-linux.git/commit
bnx2x: add missing napi deletion in error path
authorMichal Schmidt <mschmidt@redhat.com>
Fri, 15 Mar 2013 05:27:54 +0000 (05:27 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Mar 2013 19:17:20 +0000 (12:17 -0700)
commit0bf2c46258b0ace08dc5e27b732d24606adc3b2e
tree2a51b1f0c3ebfef1652c2d1e8ab13a2082d8c821
parent04188f3010f64ddf2c75c3f4953eee9bdb4f5cc1
bnx2x: add missing napi deletion in error path

[ Upstream commit 722c6f585088a2c392b4c5d01b87a584bb8fb73f ]

If the hardware initialization fails in bnx2x_nic_load() after adding
napi objects, they would not be deleted. A subsequent attempt to unload
the bnx2x module detects a corruption in the napi list.

Add the missing napi deletion to the error path.

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Acked-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c