diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2022-08-15 16:49:38 -0500 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2022-08-31 23:39:59 -0400 |
commit | ee92366a8439856136368a106e6e08ffa8306a1e (patch) | |
tree | 38f9637c80aa19232cb3f3630b2dafecabf02a45 /security/loadpin | |
parent | eeb3bab77244b8d91e4e9b611177cd1196900163 (diff) | |
download | linux-ee92366a8439856136368a106e6e08ffa8306a1e.tar.gz linux-ee92366a8439856136368a106e6e08ffa8306a1e.tar.bz2 linux-ee92366a8439856136368a106e6e08ffa8306a1e.zip |
scsi: megaraid_sas: Replace one-element array with flexible-array member in MR_PD_CFG_SEQ_NUM_SYNC
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_PD_CFG_SEQ_NUM_SYNC and refactor the rest of the code
accordingly.
This helps with the ongoing efforts to tighten the FORTIFY_SOURCE routines
on memcpy() and help us make progress towards globally enabling
-fstrict-flex-arrays [0].
Link: https://github.com/KSPP/linux/issues/79
Link: https://github.com/KSPP/linux/issues/109
Link: Link: https://reviews.llvm.org/D126864 [0]
Link: https://lore.kernel.org/r/78e9261591db072b67fcf49f0216d7046a67ca6d.1660592640.git.gustavoars@kernel.org
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'security/loadpin')
0 files changed, 0 insertions, 0 deletions