diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-06-16 02:01:07 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-18 01:04:57 +0300 |
commit | 3dd1499666f64817173c6390ed4d387471d07df8 (patch) | |
tree | bcbfc7215836963205456fb4bc20a83e869d59f2 /net/ethtool/cabletest.c | |
parent | 682591f7a6fae0cba255af889fae3d6e211d4d25 (diff) | |
download | linux-3dd1499666f64817173c6390ed4d387471d07df8.tar.xz |
ethtool: ioctl: Use array_size() in copy_to_user()
Use array_size() helper instead of the open-coded version in
copy_to_user(). These sorts of multiplication factors need to
be wrapped in array_size().
This issue was found with the help of Coccinelle and, audited and fixed
manually.
Addresses-KSPP-ID: https://github.com/KSPP/linux/issues/83
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ethtool/cabletest.c')
0 files changed, 0 insertions, 0 deletions