e1000e: prevent oops when adapter is being closed and reset simultaneously
authorBruce Allan <bruce.w.allan@intel.com>
Wed, 21 Mar 2012 00:39:12 +0000 (00:39 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 3 Apr 2012 22:25:08 +0000 (15:25 -0700)
commitbb9e44d0d0f45da356c39e485edacff6e14ba961
treead4051375ad12407b3fdec34431a7a4da4009b0f
parentaacc1bea190d731755a65cb8ec31dd756f4e263e
e1000e: prevent oops when adapter is being closed and reset simultaneously

When the adapter is closed while it is simultaneously going through a
reset, it can cause a null-pointer dereference when the two different code
paths simultaneously cleanup up the Tx/Rx resources.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/e1000e/e1000.h
drivers/net/ethernet/intel/e1000e/netdev.c