summaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorDheeraj Reddy Jonnalagadda <dheeraj.linuxdev@gmail.com>2025-01-08 08:09:16 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2025-01-11 02:19:48 +0300
commit8ccc5947f5d1608f7217cdbee532c7fc2431f7c9 (patch)
tree5cab243003c8d4d2e6b9fdd28da128ff9f7c1069 /tools/perf/util/scripting-engines/trace-event-python.c
parent17789f8a5b81356fc83cf20de899fc351679574e (diff)
downloadlinux-8ccc5947f5d1608f7217cdbee532c7fc2431f7c9.tar.xz
scsi: fnic: Fix use of uninitialized value in debug message
The oxid variable in fdls_process_abts_req() was only being initialized inside the if (tport) block, but was being used in a debug print statement after that block. If tport was NULL, oxid would remain uninitialized. Move the oxid initialization to happen at declaration using FNIC_STD_GET_OX_ID(fchdr). Fixes: f828af44b8dd ("scsi: fnic: Add support for unsolicited requests and responses") Closes: https://scan7.scan.coverity.com/#/project-view/52337/11354?selectedIssue=1602772 Signed-off-by: Dheeraj Reddy Jonnalagadda <dheeraj.linuxdev@gmail.com> Link: https://lore.kernel.org/r/20250108050916.52721-1-dheeraj.linuxdev@gmail.com Reviewed-by: Karan Tilak Kumar <kartilak@cisco.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions