ethtool: ensure channel counts are within bounds during SCHANNELS
authorKeller, Jacob E <jacob.e.keller@intel.com>
Tue, 9 Feb 2016 00:05:04 +0000 (16:05 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Feb 2016 20:19:49 +0000 (15:19 -0500)
commit8bf3686204861d39803797ebbd1e264442421907
tree72de52f824495cce07e7c557b5064d4e42b931e7
parentd4ab4286276fcd6c155bafdf4422b712068d2516
ethtool: ensure channel counts are within bounds during SCHANNELS

Add a sanity check to ensure that all requested channel sizes are within
bounds, which should reduce errors in driver implementation.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/ethtool.c