From: James Smart Date: Fri, 6 May 2022 03:55:08 +0000 (-0700) Subject: scsi: lpfc: Fix element offset in __lpfc_sli_release_iocbq_s4() X-Git-Tag: baikal/mips/sdk5.9~3 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=e00b0d746336ac710d82705389697179898c2836;p=kernel.git scsi: lpfc: Fix element offset in __lpfc_sli_release_iocbq_s4() commit f8fb3f0068caa8cfa33e413c156ad87cef81417f upstream. The prior commit that moved from iocb elements to explicit wqe elements missed a name change. Correct __lpfc_sli_release_iocbq_s4() to reference wqe rather than iocb. Link: https://lore.kernel.org/r/20220506035519.50908-2-jsmart2021@gmail.com Fixes: fb994183cded ("scsi: lpfc: SLI path split: Refactor lpfc_iocbq") Co-developed-by: Justin Tee Signed-off-by: Justin Tee Signed-off-by: James Smart Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/scsi/lpfc/lpfc_sli.c b/drivers/scsi/lpfc/lpfc_sli.c index 14b91fe1171c2..b6ea54716b5c3 100644 --- a/drivers/scsi/lpfc/lpfc_sli.c +++ b/drivers/scsi/lpfc/lpfc_sli.c @@ -1384,7 +1384,7 @@ static void __lpfc_sli_release_iocbq_s4(struct lpfc_hba *phba, struct lpfc_iocbq *iocbq) { struct lpfc_sglq *sglq; - size_t start_clean = offsetof(struct lpfc_iocbq, iocb); + size_t start_clean = offsetof(struct lpfc_iocbq, wqe); unsigned long iflag = 0; struct lpfc_sli_ring *pring;