diff options
| author | Jakub Kicinski <[email protected]> | 2023-06-08 16:23:44 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2023-06-12 07:50:48 +0000 |
| commit | 52f79609c0c5b25fddb88e85f25ce08aa7e3fb42 (patch) | |
| tree | 8cf8422dbe33c3ca4df25545de64329dc7b2c1bb /drivers/net/wan/lapbether.c | |
| parent | bnx2x: fix page fault following EEH recovery (diff) | |
| download | kernel-52f79609c0c5b25fddb88e85f25ce08aa7e3fb42.tar.gz kernel-52f79609c0c5b25fddb88e85f25ce08aa7e3fb42.zip | |
net: ethtool: correct MAX attribute value for stats
When compiling YNL generated code compiler complains about
array-initializer-out-of-bounds. Turns out the MAX value
for STATS_GRP uses the value for STATS.
This may lead to random corruptions in user space (kernel
itself doesn't use this value as it never parses stats).
Fixes: f09ea6fb1272 ("ethtool: add a new command for reading standard stats")
Signed-off-by: Jakub Kicinski <[email protected]>
Reviewed-by: David Ahern <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/wan/lapbether.c')
0 files changed, 0 insertions, 0 deletions
