cnic: Check device state before reading the kcq pointer in IRQ
authorMichael Chan <mchan@broadcom.com>
Thu, 23 Dec 2010 08:38:30 +0000 (08:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Dec 2010 19:44:32 +0000 (11:44 -0800)
commiteaaa6e9c222d5c398488ed4216f0fd94e4b81759
tree29b51c0a45c5bda5d871f1c59f66d463fa6bc588
parent4aacb7afb6afd78efe26427e74fa56a5fc72fad3
cnic: Check device state before reading the kcq pointer in IRQ

If the device is down, the kcq pointer may be NULL.

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