e1000: fix close race with interrupt
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Wed, 25 Mar 2009 21:59:22 +0000 (21:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Mar 2009 08:00:55 +0000 (01:00 -0700)
commita6c42322722976ca81e6d02e4a702f33d659d8fc
tree1f3a9a036b41edb32ee00cf6c0a972dfad80b18f
parentccfb342c5cd584f0f3e682280f7152310edf0e39
e1000: fix close race with interrupt

this is in regards to
http://bugzilla.kernel.org/show_bug.cgi?id=12876

where it appears that e1000 can leave its interrupt enabled after
exiting the driver.  Fix the bug by making the interrupt enable
paths more aware of the driver exiting.

Thanks to Alan Cox for the poke and initial investigation.

CC: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/e1000/e1000_main.c