diff options
author | Nilesh Javali <[email protected]> | 2023-06-07 17:08:38 +0530 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2023-06-14 22:06:01 -0400 |
commit | 6b504d06976fe4a61cc05dedc68b84fadb397f77 (patch) | |
tree | 6a8412a3475fa719bbf8413d0fb558868b6a1d84 /scripts/gdb/linux/modules.py | |
parent | 464ea494a40c6e3e0e8f91dd325408aaf21515ba (diff) |
scsi: qla2xxx: Avoid fcport pointer dereference
Klocwork reported warning of NULL pointer may be dereferenced. The routine
exits when sa_ctl is NULL and fcport is allocated after the exit call thus
causing NULL fcport pointer to dereference at the time of exit.
To avoid fcport pointer dereference, exit the routine when sa_ctl is NULL.
Cc: [email protected]
Signed-off-by: Nilesh Javali <[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/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions