]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commit02481bc678076f05643e7b240b2ea7c9aa1e72e1
tree039ce344bb519e08558da93d61ae3328869e0792
parent5721f9432de025065b42375f0cbeaf936958b8b6
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