scsi: lpfc: Null pointer dereference when log_verbose is set to 0xffffffff
authorJames Smart <jsmart2021@gmail.com>
Fri, 2 Jun 2017 04:07:06 +0000 (21:07 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Jun 2017 01:37:31 +0000 (21:37 -0400)
commite92974f6cdaad36691b74045817b585a7b76988b
tree117b7e9c4297dbef3a8a9aa6673fd916d0d85b6b
parentb83d005e63ba2383738c1818691e973761d1e860
scsi: lpfc: Null pointer dereference when log_verbose is set to 0xffffffff

Kernel panic when log_verbose is set to 0xffffffff

phba->pport is dereferenced before it is initialized

Fix: Do not dereference phba->pport if it is NULL

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