diff options
author | Gustavo A. R. Silva <[email protected]> | 2022-08-15 16:40:35 -0500 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2022-08-31 23:39:59 -0400 |
commit | ac23b92b27e32f1ff331350342ce9f2ee9d0ab0f (patch) | |
tree | e34d2937e790af42d4171d87d9477d9f6bd32a89 /tools/perf/scripts/python/syscall-counts.py | |
parent | 3cb0643a9aae7cf360102a6a9db47f5ce9fefdb1 (diff) |
scsi: megaraid_sas: Replace one-element array with flexible-array member in MR_FW_RAID_MAP
One-element arrays are deprecated, and we are replacing them with flexible
array members instead. So, replace one-element array with flexible-array
member in struct MR_DRV_RAID_MAP and refactor the the rest of the code
accordingly.
This helps with the ongoing efforts to tighten the FORTIFY_SOURCE routines
on memcpy().
Link: https://github.com/KSPP/linux/issues/79
Link: https://github.com/KSPP/linux/issues/109
Link: https://lore.kernel.org/r/4495ce170c8ef088a10f1abe0e7c227368f43242.1660592640.git.gustavoars@kernel.org
Reviewed-by: Kees Cook <[email protected]>
Signed-off-by: Gustavo A. R. Silva <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Enhanced-by: Kees Cook <[email protected]> # Change in struct MR_FW_RAID_MAP_ALL
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions