]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6360fa98f409ad1f8f6ddc06f50b9b340312b4df
tree98b738e18cf46aa1cc081535dc1df9d691c84e53
parentb4e5ecd0dc03934fca5ef0cb3561e5cf65af836e
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