Home
last modified time | relevance | path

Searched hist:"3 dd14996" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/ethtool/
H A Dioctl.c3dd14996 Mon Jun 15 18:01:07 CDT 2020 Gustavo A. R. Silva <gustavoars@kernel.org> 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>