cnic: Fix crash during bnx2x MTU change.
authorMichael Chan <mchan@broadcom.com>
Thu, 8 Apr 2010 03:53:54 +0000 (20:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Apr 2010 03:53:54 +0000 (20:53 -0700)
commit94824f3dbe0d3f62470603bbb18efb5510aaf07c
tree1f69ebc10bafdb67b48d80722808fd2c9cb8c49d
parent04b1a22350e1e6464c3109886385178d119dbbb4
cnic: Fix crash during bnx2x MTU change.

cnic_service_bnx2x() irq handler can be called during chip reset from
MTU change.  Need to check that the cnic's device state is up before
handling the irq.

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