summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorDaniel Wagner <wagi@kernel.org>2025-04-09 14:34:22 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2025-04-12 04:31:17 +0300
commitae82eaf4aeea060bb736c3e20c0568b67c701d7d (patch)
tree42615d2232e065ca0f88ec6db35b71b24d91c592 /tools/perf/scripts/python/export-to-sqlite.py
parentcdcb08d5710bc9b543551a85ad551f44d6a4bfc0 (diff)
downloadlinux-ae82eaf4aeea060bb736c3e20c0568b67c701d7d.tar.xz
scsi: lpfc: Use memcpy() for BIOS version
The strlcat() with FORTIFY support is triggering a panic because it thinks the target buffer will overflow although the correct target buffer size is passed in. Anyway, instead of memset() with 0 followed by a strlcat(), just use memcpy() and ensure that the resulting buffer is NULL terminated. BIOSVersion is only used for the lpfc_printf_log() which expects a properly terminated string. Signed-off-by: Daniel Wagner <wagi@kernel.org> Link: https://lore.kernel.org/r/20250409-fix-lpfc-bios-str-v1-1-05dac9e51e13@kernel.org Reviewed-by: Justin Tee <justin.tee@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions