aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_doc.py
diff options
context:
space:
mode:
authorJustin Tee <[email protected]>2023-10-31 12:12:17 -0700
committerMartin K. Petersen <[email protected]>2023-11-15 09:52:57 -0500
commitf5779b529240b715f0e358489ad0ed933bf77c97 (patch)
treeb4bb842c071a070646bbf2cb7cce1fe4f8fcb8e8 /scripts/bpf_doc.py
parent2fe4b6a67730e6ffd002b2b3c4752ef262fedde4 (diff)
scsi: lpfc: Fix possible file string name overflow when updating firmware
Because file_name and phba->ModelName are both declared a size 80 bytes, the extra ".grp" file extension could cause an overflow into file_name. Define a ELX_FW_NAME_SIZE macro with value 84. 84 incorporates the 4 extra characters from ".grp". file_name is changed to be declared as a char and initialized to zeros i.e. null chars. Signed-off-by: Justin Tee <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Himanshu Madhani <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions