]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbevf: Correct parameter sent to LED function
authorDon Skidmore <donald.c.skidmore@intel.com>
Fri, 17 Jun 2016 21:10:13 +0000 (17:10 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 22 Jul 2016 08:12:58 +0000 (01:12 -0700)
commit877d0e8d0c7a03b819d7b013920df9eab67458cf
treeea2e146a456936f8ce4325a39c7d4a1eb9fa1bcd
parent56323e115417f95437bcde5bb7cea9e6f896921f
ixgbevf: Correct parameter sent to LED function

The second parameter of these functions is the index to the led we
are interested in affecting.  However we were mistakenly passing
the offset in the register.  This patch corrects that and adds some
bonds checking which would hopefully make bugs like this more noticeable
in the future.

Signed-off-by: Don Skidmore <donald.c.skidmore@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c