]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita592bd9947e60cc9b6e094664238fab0f51ecbb8
tree72de52f824495cce07e7c557b5064d4e42b931e7
parent881d9802b432d3e1de1fcf6a3b89941f486ffa9d
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