]> 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)
commit7b893aae30c1cc4b2cc102c49f778e339cee09b0
treee55634809342843ef888621701351b17347ecae0
parent930339b005e186255167981c14fcf2fd2cac137c
ixgbe: Add bounds check for x540 LED functions

This is an extension of commit 877d0e8d0c7a ("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