aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_doc.py
diff options
context:
space:
mode:
authorJames Seo <[email protected]>2023-08-06 10:06:04 -0700
committerMartin K. Petersen <[email protected]>2023-11-15 08:52:03 -0500
commite188215562727972cb49681b6ea56936455cf66e (patch)
treec18e6646d1383fa9d3e70c1b74eeb56da1f140bb /scripts/bpf_doc.py
parentdde41e0c1cc2f81bfb5e4fc86ad66c2234c1878c (diff)
scsi: mpt3sas: Replace dynamic allocations with local variables
mpt3sas_scsih.c:_scsih_scan_for_devices_after_reset() allocates and fetches a MPI2_CONFIG_PAGE_RAID_VOL_0 struct (Mpi2RaidVolPage0_t) and a MPI2_CONFIG_PAGE_RAID_VOL_1 struct (Mpi2RaidVolPage1_t), but does not include the terminal flexible array members in the struct size calculations, fetch those members, or otherwise use those members in any way. These dynamic allocations can be replaced with local variables. Signed-off-by: James Seo <[email protected]> Link: https://lore.kernel.org/r/[email protected] Tested-by: Borislav Petkov (AMD) <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions