ixgbe: Fix spurious release of semaphore in EEPROM access
authorMark Rustad <mark.d.rustad@intel.com>
Tue, 22 Jul 2014 06:50:42 +0000 (06:50 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 26 Jul 2014 01:54:09 +0000 (18:54 -0700)
commite4856696b4afbf53a84e0475149369b78b47f713
treed7121a9b538a2f67521c97d25be9c7c4a8232e12
parentd819fc52117e18e9e331edc8fe7bd623279825d0
ixgbe: Fix spurious release of semaphore in EEPROM access

Failure to acquire the semaphore would lead to a spurious release
of the semaphore in several functions. Do not release a semaphore
that you did not get.

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_x540.c