scsi: lpfc: Fix system panic when express lane enabled.
authorJames Smart <jsmart2021@gmail.com>
Fri, 16 Jun 2017 05:56:41 +0000 (22:56 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 20 Jun 2017 01:39:01 +0000 (21:39 -0400)
commitd41b65bcdc43fed82ea6b3c006a268df6c53e80d
treee089eaf58cdeec2b3b5c6a6717009ff995b4b579
parentd30ff2632333dab794d3be14e16ca8c42dfc294d
scsi: lpfc: Fix system panic when express lane enabled.

There is a null pointer dereference that can happen in the FOF interrupt
handler.

The driver was not setting up cq->assoc_qp_for sli4_hba->oas_cq.

Initialize cq->assoc_qp before accessing it.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_sli.c