]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Revert "igb: Fix a deadlock in igb_sriov_reinit"
authorArika Chen <arika.chen@huawei.com>
Thu, 7 Apr 2016 04:02:11 +0000 (21:02 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 7 Apr 2016 04:02:11 +0000 (21:02 -0700)
This reverts commit 3eb14ea8d958 ("igb: Fix a deadlock in
igb_sriov_reinit")
It is the same as commit f468adc944ef ("igb: missing rtnl_unlock in
igb_sriov_reinit()")
There is no rtnl_lock() in igb_resume before, rtnl_unlock will cause a
deadlock.

Signed-off-by: Arika Chen <arika.chen@huawei.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb_main.c

index ff0476c89438e43185c18be0f314463a3c8d318f..8e96c35307fb8e6f8d2a66677aa82a4afe8bbd20 100644 (file)
@@ -7579,7 +7579,6 @@ static int igb_resume(struct device *dev)
 
        if (igb_init_interrupt_scheme(adapter, true)) {
                dev_err(&pdev->dev, "Unable to allocate memory for queues\n");
-               rtnl_unlock();
                return -ENOMEM;
        }