diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2021-09-28 14:57:35 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-09-29 11:32:14 +0100 |
commit | ed717613f972453ab924eee8b64a62e0db83be67 (patch) | |
tree | 9c755e4cd633df47143d66763d0f655bf81e96c9 /certs | |
parent | 4f948b34304c8a8600383256967e9931407acd88 (diff) | |
download | lwn-ed717613f972453ab924eee8b64a62e0db83be67.tar.gz lwn-ed717613f972453ab924eee8b64a62e0db83be67.zip |
ethtool: ioctl: Use array_size() helper in copy_{from,to}_user()
Use array_size() helper instead of the open-coded version in
copy_{from,to}_user(). These sorts of multiplication factors
need to be wrapped in array_size().
Link: https://github.com/KSPP/linux/issues/160
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions