summaryrefslogtreecommitdiff
path: root/net/ethtool/linkstate.c
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2021-06-16 06:33:38 +0300
committerDavid S. Miller <davem@davemloft.net>2021-06-16 10:40:44 +0300
commit4d1fb7cde0ccc6000cafb72d9079de1504e3cb2a (patch)
treed8c02b3d72f4e50d6f9ccc42f381bb075944cf66 /net/ethtool/linkstate.c
parent1b3fc771769c9f9418b23dd5676ab25a215d247d (diff)
downloadlinux-4d1fb7cde0ccc6000cafb72d9079de1504e3cb2a.tar.xz
ethtool: add a stricter length check
There has been a few errors in the ethtool reply size calculations, most of those are hard to trigger during basic testing because of skb size rounding up and netdev names being shorter than max. Add a more precise check. This change will affect the value of payload length displayed in case of -EMSGSIZE but that should be okay, "payload length" isn't a well defined term here. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ethtool/linkstate.c')
0 files changed, 0 insertions, 0 deletions