]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: mpt3sas: Convert to flexible arrays
authorKees Cook <keescook@chromium.org>
Tue, 1 Feb 2022 22:39:48 +0000 (14:39 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 8 Feb 2022 04:16:34 +0000 (23:16 -0500)
commit16640efa6b4ba36cd32040201659112ca742505f
tree8e39975450cbefae973f16989ef10ca9328b6526
parent6d76cd73704cfc794df43ba9a8bed34a2b901ef4
scsi: mpt3sas: Convert to flexible arrays

This converts to a flexible array instead of the old-style 1-element
arrays. The existing code already did the correct math for finding the size
of the resulting flexible array structure, so there is no binary
difference.

The other two structures converted to use flexible arrays appear to have no
users at all.

Link: https://lore.kernel.org/r/20220201223948.1455637-1-keescook@chromium.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpt3sas/mpi/mpi2_ioc.h