Commit 6f808bd
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: bb21fc9 ("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>1 parent e27f051 commit 6f808bd
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6062 | 6062 | | |
6063 | 6063 | | |
6064 | 6064 | | |
| 6065 | + | |
| 6066 | + | |
| 6067 | + | |
6065 | 6068 | | |
6066 | 6069 | | |
6067 | 6070 | | |
| |||
6140 | 6143 | | |
6141 | 6144 | | |
6142 | 6145 | | |
| 6146 | + | |
| 6147 | + | |
| 6148 | + | |
6143 | 6149 | | |
6144 | 6150 | | |
6145 | 6151 | | |
| |||
0 commit comments