Kees Cook 812ad3d270 ethtool: stats: Use struct_group() to clear all stats at once
In preparation for FORTIFY_SOURCE performing compile-time and run-time
field bounds checking for memset(), avoid intentionally writing across
neighboring fields.

Add struct_group() to mark region of struct stats_reply_data that should
be initialized, which can now be done in a single memset() call.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-11-19 11:53:02 +00:00
..
2021-11-04 21:04:25 +09:00
2021-10-24 13:59:45 +01:00
2021-10-13 09:40:45 -07:00
2021-06-29 11:28:21 -07:00
2021-10-13 09:40:46 -07:00
2021-11-16 19:07:54 -08:00
2021-10-13 09:40:45 -07:00
2021-10-13 09:40:45 -07:00
2021-11-02 06:20:58 -07:00
2021-07-29 15:06:49 +01:00
2021-08-31 16:43:06 -07:00