OSDN Git Service

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)
commit37e2d99b59c4765112533a1d38174fea58d28a51
tree526eef443a0d386d73e61fec979a2f07d5b720b7
parent709af180eed51042eeae6c232d109d4c18e88c8e
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