Skip to content

Commit 01f2ef6

Browse files
jsmart-ghmartinkpetersen
authored andcommitted
scsi: lpfc: fix 12.4.0.0 GPF at boot
The 12.4.0.0 patch that merged WQ/CQ pairs into single per-cpu pair contained a bug: a local variable was set to the queue pair by index. This should have allowed the local variable to be natively used. Instead, the code reused the index relative to the local variable, obtaining a random pointer value that when used eventually faulted the system Convert offending code to use local variable. Fixes: c00f62e ("scsi: lpfc: Merge per-protocol WQ/CQ pairs into single per-cpu pair") Signed-off-by: Dick Kennedy <[email protected]> Signed-off-by: James Smart <[email protected]> Tested-by: Abdul Haleem <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 9db6c14 commit 01f2ef6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/lpfc/lpfc_sli.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5553,7 +5553,7 @@ lpfc_sli4_arm_cqeq_intr(struct lpfc_hba *phba)
55535553
for (qidx = 0; qidx < phba->cfg_hdw_queue; qidx++) {
55545554
qp = &sli4_hba->hdwq[qidx];
55555555
/* ARM the corresponding CQ */
5556-
sli4_hba->sli4_write_cq_db(phba, qp[qidx].io_cq, 0,
5556+
sli4_hba->sli4_write_cq_db(phba, qp->io_cq, 0,
55575557
LPFC_QUEUE_REARM);
55585558
}
55595559

0 commit comments

Comments
 (0)