diff options
author | Jakub Kicinski <kuba@kernel.org> | 2021-06-16 06:33:38 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-16 10:40:44 +0300 |
commit | 4d1fb7cde0ccc6000cafb72d9079de1504e3cb2a (patch) | |
tree | d8c02b3d72f4e50d6f9ccc42f381bb075944cf66 /net/ethtool/linkstate.c | |
parent | 1b3fc771769c9f9418b23dd5676ab25a215d247d (diff) | |
download | linux-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