]> git.baikalelectronics.ru Git - kernel.git/commit
ethtool: Ensure new ring parameters are within bounds during SRINGPARAM
authorEugenia Emantayev <eugenia@mellanox.com>
Mon, 8 Jan 2018 14:00:24 +0000 (16:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Jan 2018 16:54:49 +0000 (11:54 -0500)
commit77ec6b45abbdfc2dbfbcf0d64114461ee4aae4b4
tree526eef443a0d386d73e61fec979a2f07d5b720b7
parent6b6cb27b0c1165ad21e2c29ac1b9e3bb4c907801
ethtool: Ensure new ring parameters are within bounds during SRINGPARAM

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

Signed-off-by: Eugenia Emantayev <eugenia@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/ethtool.c