mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
scsi: lpfc: Check queue pointer before use
The queue pointer might not be valid. The rest of the code checks the
pointer before accessing it. lpfc_sli4_process_missed_mbox_completions is
the only place where the check is missing.
Fixes: 657add4e5e ("scsi: lpfc: Fix poor use of hardware queues if fewer irq vectors")
Cc: James Smart <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Daniel Wagner <[email protected]>
Reviewed-by: James Smart <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
This commit is contained in:
parent
66cf50e65b
commit
535fb49e73
1 changed files with 1 additions and 1 deletions
|
|
@ -7866,7 +7866,7 @@ lpfc_sli4_process_missed_mbox_completions(struct lpfc_hba *phba)
|
|||
if (sli4_hba->hdwq) {
|
||||
for (eqidx = 0; eqidx < phba->cfg_irq_chann; eqidx++) {
|
||||
eq = phba->sli4_hba.hba_eq_hdl[eqidx].eq;
|
||||
if (eq->queue_id == sli4_hba->mbx_cq->assoc_qid) {
|
||||
if (eq && eq->queue_id == sli4_hba->mbx_cq->assoc_qid) {
|
||||
fpeq = eq;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue