sky2: fix hang in napi_disable
authorstephen hemminger <shemminger@vyatta.com>
Thu, 17 Nov 2011 14:37:35 +0000 (14:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Nov 2011 02:43:57 +0000 (21:43 -0500)
commit282edcece39e08d02c22492d593e4b9b94a65dff
treea0d0c9816a5ef76bc637a573e382379600016e09
parent738a849c8eef4787a526d95763f985b8c1cb68e4
sky2: fix hang in napi_disable

If IRQ was never initialized, then calling napi_disable() would hang.
Add more bookkeeping to track whether IRQ was ever initialized.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/sky2.c
drivers/net/ethernet/marvell/sky2.h