summaryrefslogtreecommitdiff
path: root/scripts/lib
diff options
context:
space:
mode:
authorJames Seo <james@equiv.tech>2023-08-06 10:06:03 -0700
committerMartin K. Petersen <martin.petersen@oracle.com>2023-11-15 08:52:02 -0500
commitdde41e0c1cc2f81bfb5e4fc86ad66c2234c1878c (patch)
tree8a7c2144afc438b9a9ebed46d22e187420b888ed /scripts/lib
parente5035459d302f4073546eed2bbd6ab55cfdfbcc8 (diff)
scsi: mpt3sas: Replace a dynamic allocation with a local variable
mpt3sas_base.c:_base_update_diag_trigger_pages() allocates and fetches a MPI2_CONFIG_PAGE_SASIOUNIT_1 struct (Mpi2SasIOUnitPage_t), but does not include the terminal flexible array member in the struct size calculation, fetch that member, or otherwise use that member in any way. This dynamic allocation can be replaced with a local variable. Signed-off-by: James Seo <james@equiv.tech> Link: https://lore.kernel.org/r/20230806170604.16143-12-james@equiv.tech Tested-by: Borislav Petkov (AMD) <bp@alien8.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'scripts/lib')
0 files changed, 0 insertions, 0 deletions