OSDN Git Service

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)
commit910c9c0f59567ec204924d88ca04337bb04f17d9
treee55634809342843ef888621701351b17347ecae0
parent2bf1a87b903bd81b1448a1cef73de59fb6c4d340
ixgbe: Add bounds check for x540 LED functions

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