e1000e: Fix incorrect ASPM locking
authorRaanan Avargil <raanan.avargil@intel.com>
Mon, 6 Jul 2015 14:57:36 +0000 (17:57 +0300)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 5 Aug 2015 23:53:47 +0000 (16:53 -0700)
commit2758f9edb7bd5a06a2ecee83cc2ebaf8822a0cb5
treea07b77e7186eb2c5fa04aed986396c207e184018
parentd582891594104adeea89307ddd31b31bcf2d95fa
e1000e: Fix incorrect ASPM locking

This patch fixes wrong locking usage.
In the context of slot reset, we should use lock.
And during resume, there is no need of lock.

Reported-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Raanan Avargil <raanan.avargil@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/netdev.c