]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Sat, 25 Feb 2017 05:47:45 +0000 (21:47 -0800)
commitee0a042bf25624572f9b9fa30c1fdc5eef515043
tree8c37c54cd3ab7f722708687e6bddfbc5f77b9498
parent522828c9cab23231c90b55f00dd5ad60dc459524
ixgbevf: Correct parameter sent to LED function

Orabug: 24568240

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>
(cherry picked from commit 003287e0f0875d0ba5f4ee3d7741ec9992766d71)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c