]> git.baikalelectronics.ru Git - kernel.git/commitdiff
scsi: lpfc: Fix element offset in __lpfc_sli_release_iocbq_s4()
authorJames Smart <jsmart2021@gmail.com>
Fri, 6 May 2022 03:55:08 +0000 (20:55 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:24:31 +0000 (14:24 +0200)
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 <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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/lpfc/lpfc_sli.c

index 14b91fe1171c2c51918503cb65aad17672b3ecad..b6ea54716b5c3fa3d5335a095dfed3d1a477384d 100644 (file)
@@ -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;