igb: Fixes needed for surprise removal support
authorCarolyn Wyborny <carolyn.wyborny@intel.com>
Sat, 22 Nov 2014 07:52:54 +0000 (23:52 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 23 Nov 2014 19:26:12 +0000 (14:26 -0500)
commit17a402a0075c7848d940eb846f8db1da6a832c5d
tree3b1d5ab2e8331ec7e9b1fdac75fb7f29dec343ae
parentb5b2ffc0574e1f271d79b6b992ee382dc9d5eaa8
igb: Fixes needed for surprise removal support

This patch adds some checks in order to prevent panic's on surprise
removal of devices during S0, S3, S4.  Without this patch, Thunderbolt
type device removal will panic the system.

Signed-off-by: Yanir Lubetkin <yanirx.lubetkin@intel.com>
Signed-off-by: Carolyn Wyborny <carolyn.wyborny@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/igb/igb_main.c