scsi: lpfc: Set elsiocb contexts to NULL after freeing it
[ Upstream commit 8667f515952feefebb3c0f8d9a9266c91b101a46 ] Set the elsiocb contexts to NULL after freeing as others depend on it. Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de> Acked-by: Dick Kennedy <dick.kennedy@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5c982bac21
commit
8c721e3805
1 changed files with 2 additions and 0 deletions
|
@ -3563,12 +3563,14 @@ lpfc_els_free_iocb(struct lpfc_hba *phba, struct lpfc_iocbq *elsiocb)
|
||||||
} else {
|
} else {
|
||||||
buf_ptr1 = (struct lpfc_dmabuf *) elsiocb->context2;
|
buf_ptr1 = (struct lpfc_dmabuf *) elsiocb->context2;
|
||||||
lpfc_els_free_data(phba, buf_ptr1);
|
lpfc_els_free_data(phba, buf_ptr1);
|
||||||
|
elsiocb->context2 = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (elsiocb->context3) {
|
if (elsiocb->context3) {
|
||||||
buf_ptr = (struct lpfc_dmabuf *) elsiocb->context3;
|
buf_ptr = (struct lpfc_dmabuf *) elsiocb->context3;
|
||||||
lpfc_els_free_bpl(phba, buf_ptr);
|
lpfc_els_free_bpl(phba, buf_ptr);
|
||||||
|
elsiocb->context3 = NULL;
|
||||||
}
|
}
|
||||||
lpfc_sli_release_iocbq(phba, elsiocb);
|
lpfc_sli_release_iocbq(phba, elsiocb);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue