diff options
author | James Smart <jsmart2021@gmail.com> | 2022-06-03 20:43:24 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2022-06-08 04:38:17 +0300 |
commit | 6f808bd78e8296b4ded813b7182988d57e1f6176 (patch) | |
tree | 740cf302a6572bf88cc7da3f7a3d32a1be742835 /scripts/gdb/linux/proc.py | |
parent | e27f05147bff21408c1b8410ad8e90cd286e7952 (diff) | |
download | linux-6f808bd78e8296b4ded813b7182988d57e1f6176.tar.xz |
scsi: lpfc: Address NULL pointer dereference after starget_to_rport()
Calls to starget_to_rport() may return NULL. Add check for NULL rport
before dereference.
Link: https://lore.kernel.org/r/20220603174329.63777-5-jsmart2021@gmail.com
Fixes: bb21fc9911ee ("scsi: lpfc: Use fc_block_rport()")
Cc: <stable@vger.kernel.org> # v5.18
Co-developed-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions