]> git.baikalelectronics.ru Git - kernel.git/commit
e1000e: Release mutex lock only if it has been initially acquired
authorAkeem G. Abodunrin <akeem.g.abodunrin@intel.com>
Thu, 2 May 2013 02:57:44 +0000 (02:57 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 21 May 2013 09:19:03 +0000 (02:19 -0700)
commit9aeaf8b324af37c90411c7d088f66872f727db73
treef9ebfcd1f4055f791992321a68fddc474ddfe96f
parenta2cd65a2463060526740fc645ca846997aa4df9b
e1000e: Release mutex lock only if it has been initially acquired

This patch fixes the issue of unlocking swflag_mutex for 82574 and 82583
devices regardless of if the hw semaphore has been successfully acquired via
e1000_get_hw_semaphore_82574(). With this patch, unlocking mutex now depends
on if the hw semaphore was successfully acquired before. And 82574/82583
devices are reset regardless of whether e1000_get_hw_semaphore_82574()
returns success or failure.

Reported-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Akeem G Abodunrin <akeem.g.abodunrin@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/82571.c