scsi: smartpqi: Replace one-element array with flexible-array member
authorGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 7 Feb 2023 21:59:43 +0000 (15:59 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 9 Feb 2023 00:03:43 +0000 (19:03 -0500)
commitead821268c14a8f87b5cb1079aed10bb16373fe8
tree7602639f2a5777b48fabd00d75ced81224d824db
parent54dd96015e8d7a2a07359e2dfebf05b529d1780c
scsi: smartpqi: Replace one-element array with flexible-array member

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 report_log_lun_list.

This helps with the ongoing efforts to tighten the FORTIFY_SOURCE routines
on memcpy().

Link: https://lore.kernel.org/r/Y+LJz/r6+UeLqnV3@work
Link: https://github.com/KSPP/linux/issues/79
Link: https://github.com/KSPP/linux/issues/204
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Acked-by: Don Brace <don.brace@microchip.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/smartpqi/smartpqi.h
drivers/scsi/smartpqi/smartpqi_init.c