]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: Add bounds check for x540 LED functions
authorTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 9 Nov 2016 18:48:48 +0000 (10:48 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 3 Jan 2017 21:03:35 +0000 (13:03 -0800)
commit02e9d1703dde52912cc3064f004e50cf90daa136
treee55634809342843ef888621701351b17347ecae0
parent2942d70d01ee22353160ce9137d035d183e7d212
ixgbe: Add bounds check for x540 LED functions

This is an extension of commit d76707d29c69 ("ixgbevf: Correct parameter
sent to LED function"); add bounds checking to x540 functions to ensure the
index is valid.

Signed-off-by: Tony Nguyen <anthony.l.nguyen@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_x540.c