net/ixgbe/base: add bounds check in LED functions
authorXiao Wang <xiao.w.wang@intel.com>
Sun, 25 Sep 2016 09:00:00 +0000 (17:00 +0800)
committerBruce Richardson <bruce.richardson@intel.com>
Fri, 30 Sep 2016 10:27:18 +0000 (12:27 +0200)
commit62478541f375f2155e8234e3eaf7985b6491f0bd
treeac7a8aeac7473fb6fd1f0d11a850d8c5c0a89dbd
parent4673405fe016f2b146297209a1a7a1c50169bdb9
net/ixgbe/base: add bounds check in LED functions

Do parameter check to prevent exceptional value being written into
register.

Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
drivers/net/ixgbe/base/ixgbe_common.c
drivers/net/ixgbe/base/ixgbe_x540.c