lpfc: Fix possible NULL pointer dereference
authorJohannes Thumshirn <jthumshirn@suse.de>
Fri, 29 Jul 2016 13:30:56 +0000 (15:30 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 2 Aug 2016 05:16:28 +0000 (01:16 -0400)
commit22466da5b4b7a82d3e5a9c21c752cae91a21dc91
treeefb17879480d646f50d3734cf0ee2f5660ab1383
parentd242e6680e81cea0343bd93ba862efa70a91a56c
lpfc: Fix possible NULL pointer dereference

Check for the existence of piocb->vport before accessing it.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Acked-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_sli.c