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)
commit003287e0f0875d0ba5f4ee3d7741ec9992766d71
treeea2e146a456936f8ce4325a39c7d4a1eb9fa1bcd
parentfc355e078a830c40f6245a55ecfff6481a4bcf57
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