]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: fix 12.4.0.0 GPF at boot
authorJames Smart <jsmart2021@gmail.com>
Wed, 28 Aug 2019 23:19:11 +0000 (16:19 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 29 Aug 2019 22:15:07 +0000 (18:15 -0400)
commit37ed5f3a42a44730fa91bbdc1eaf83db96affaaa
tree3ea4bf32b2ee710fd552eaa40c86a4848500ee50
parentea50be963c2eb25521e1de11a179e32f2b7c3f53
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: e28a8900ec64 ("scsi: lpfc: Merge per-protocol WQ/CQ pairs into single per-cpu pair")
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Tested-by: Abdul Haleem <abdhalee@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_sli.c