ixgbe: fix possible data corruption in read_i2c_byte
authorEmil Tantilov <emil.s.tantilov@intel.com>
Fri, 18 Jan 2013 02:16:41 +0000 (02:16 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 16 Feb 2013 07:16:09 +0000 (23:16 -0800)
commitd0310dc415a670ae2b2e27076b4685d988830479
tree400b27b6a6371faa044e3f8f91003ed7fe3136c3
parent4c696ca9fbabc5f94a3c6db7f009e73f0ef21831
ixgbe: fix possible data corruption in read_i2c_byte

This patch makes sure that the SW lock is released after all i2c
operations complete in the retry code path.

Signed-off-by: Emil Tantilov <emil.s.tantilov@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_phy.c