diff options
| author | Kees Cook <[email protected]> | 2021-12-08 11:59:57 -0800 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2021-12-13 23:30:30 -0500 |
| commit | 532adda9f405d69ef1837f59e60512313fdf0f63 (patch) | |
| tree | ab597bc2b6d924f5dc7b674bfc7a84f68f4fdefe /scripts/stackusage | |
| parent | 4437503bfbec2f02b41b2492520fe627715889a7 (diff) | |
scsi: lpfc: Use struct_group() to initialize struct lpfc_cgn_info
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 "stat" region of struct lpfc_cgn_info that
should be initialized to zero, and refactor the "data" region memset()
to wipe everything up to the cgn_stats region.
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: James Smart <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions