]> 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)
commit46718044a1760702099f4389e7b848ea0a069f2c
tree526eef443a0d386d73e61fec979a2f07d5b720b7
parentded70cb2323df9101ad15ccbb41845cdd88e70db
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