]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2: Handle error condition in ->slot_reset()
authorMichael Chan <mchan@broadcom.com>
Tue, 6 Aug 2013 22:50:07 +0000 (15:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Aug 2013 17:44:03 +0000 (10:44 -0700)
commit324057491043ae84c23594c3e44bea8384cb7f7b
tree039ce344bb519e08558da93d61ae3328869e0792
parent08cb35ba4664d923e652dfe26e69a9375174d987
bnx2: Handle error condition in ->slot_reset()

by closing the device if necessary.  Otherwise, since NAPI state is
already disabled, a subsequent close will hang the system.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2.c