diff options
author | Ido Schimmel <idosch@nvidia.com> | 2021-06-22 09:50:51 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-22 20:40:54 +0300 |
commit | 0dc7dd02ba7ab5f623f5e3a36443ec441364285a (patch) | |
tree | 3f34044ccffd23c3d7bc850f9300b91ef4397ea2 /crypto | |
parent | b8c48be23c2d03834fe01c3ea757d9df8b97013d (diff) | |
download | linux-0dc7dd02ba7ab5f623f5e3a36443ec441364285a.tar.xz |
ethtool: Validate module EEPROM length as part of policy
Validate the number of bytes to read from the module EEPROM as part of
the netlink policy and remove the corresponding check from the code.
This also makes it possible to query the length range from user space:
$ genl ctrl policy name ethtool
...
ID: 0x14 policy[32]:attr[3]: type=U32 range:[1,128]
...
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions