scsi: lpfc: Fix crash on powering off BFS VM with passthrough device
authorJames Smart <jsmart2021@gmail.com>
Fri, 2 Jun 2017 04:07:04 +0000 (21:07 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Jun 2017 01:37:31 +0000 (21:37 -0400)
commitecbb227e635a61f751e8c8ad1c585a0c4ed11de1
tree98b738e18cf46aa1cc081535dc1df9d691c84e53
parent522dceeb62ded1a7b538d2f1f61cc69a1402537d
scsi: lpfc: Fix crash on powering off BFS VM with passthrough device

Null pointer dereference when BFS VM is powered off

The driver incorrectly uses sli3_ring on SLI-4 adapters

Use the correct ring structure based on sli_rev

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Tested-by: Raphael Silva <raphasil@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_sli.c