diff options
| author | Kees Cook <keescook@chromium.org> | 2021-11-18 12:34:56 -0800 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2021-11-19 11:53:02 +0000 |
| commit | 812ad3d270cb900d156a1542360d81f749dbe040 (patch) | |
| tree | 4f752faa1681e2c04fab51614ab8d1f492820890 /lib/mpi/mpi-inv.c | |
| parent | b5d8cf0af167f3ab9f4cfe44918cde01e20a1222 (diff) | |
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>
Diffstat (limited to 'lib/mpi/mpi-inv.c')
0 files changed, 0 insertions, 0 deletions
