diff options
| author | Kees Cook <[email protected]> | 2021-05-20 22:33:30 +0000 |
|---|---|---|
| committer | Kees Cook <[email protected]> | 2021-09-25 15:20:49 +0000 |
| commit | 8610047ca89f4855ae0546dfc8db122d28deb50d (patch) | |
| tree | fad89a4235237ca1f251a42eeac5a0cbdd1d4354 /lib/string.c | |
| parent | can: flexcan: Use struct_group() to zero struct flexcan_regs regions (diff) | |
| download | kernel-8610047ca89f4855ae0546dfc8db122d28deb50d.tar.gz kernel-8610047ca89f4855ae0546dfc8db122d28deb50d.zip | |
cm4000_cs: Use struct_group() to zero struct cm4000_dev region
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 cm4000_dev that should be
initialized to zero.
Cc: Harald Welte <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Acked-by: Greg Kroah-Hartman <[email protected]>
Link: https://lore.kernel.org/lkml/[email protected]
Diffstat (limited to 'lib/string.c')
0 files changed, 0 insertions, 0 deletions
