lpfc: drop nodelist reference on error in lpfc_gen_req()
Subsystems (2)
PATCH 1/1 lpfc: drop nodelist reference on error in lpfc_gen_req()
If we fail to issue the iocb in lpfc_gen_req() we need to drop the nodelist reference.
Signed-off-by Hannes Reinecke <[email protected]>
--- drivers/scsi/lpfc/lpfc_ct.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/scsi/lpfc/lpfc_ct.c +2 -0
@@ -387,6 +387,8 @@ lpfc_gen_req(struct lpfc_vport *vport, struct lpfc_dmabuf *bmp, rc =lpfc_sli_issue_iocb (phba,LPFC_ELS_RING , geniocb,0 );if (rc ==IOCB_ERROR ) { + geniocb->context_un.ndlp =NULL ; +lpfc_nlp_put (ndlp);lpfc_sli_release_iocbq (phba, geniocb);return 1 ; }
Signature · 1 line
2.16.4
Martin K. Petersen
AppliedHannes,
Quoted 2 lines
If we fail to issue the iocb in
lpfc_gen_req()we need to drop the nodelist reference.
Applied to 5.10/scsi-staging, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering
Martin K. Petersen
AppliedQuoted 2 lines · Hannes Reinecke
If we fail to issue the iocb in
lpfc_gen_req()we need to drop the nodelist reference.
Applied to 5.10/scsi-queue, thanks!
[1/1] scsi: lpfc: Drop nodelist reference on error in lpfc_gen_req()
https://git.kernel.org/mkp/scsi/c/962d359c4d3b
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering