igb: fix rtnl race in PM resume path
authorBenjamin Poirier <bpoirier@suse.de>
Thu, 10 May 2012 15:38:37 +0000 (15:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 May 2012 02:44:46 +0000 (22:44 -0400)
commitcfb8c3aa59302636c69890be10b2ef23a7ca83b2
tree807db877df7d1ff7282d0966d9cf9a441d6fbf0f
parentdccd9ecc374462e5d6a5b8f8110415a86c2213d8
igb: fix rtnl race in PM resume path

Since the caller (PM resume code) is not the one holding rtnl, when taking the
'else' branch rtnl may be released at any moment, thereby defeating the whole
purpose of this code block.

Signed-off-by: Benjamin Poirier <bpoirier@suse.de>
Tested-by: Jeff Pieper <jeffrey.e.pieper@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