]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Check queue pointer before use
authorDaniel Wagner <dwagner@suse.de>
Fri, 18 Oct 2019 16:21:11 +0000 (18:21 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 18 Oct 2019 21:59:27 +0000 (17:59 -0400)
commitf8748fc622e42d9f0778b16afeb1b53141a604fe
treec3e12dc903622d1547ca00305d6b7f2067bc7e41
parent720eeaec3e9560a8f1072f7bbbef810c10384bb9
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: 19a9032ec88c ("scsi: lpfc: Fix poor use of hardware queues if fewer irq vectors")
Cc: James Smart <jsmart2021@gmail.com>
Link: https://lore.kernel.org/r/20191018162111.8798-1-dwagner@suse.de
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Reviewed-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_sli.c