commit | bb6a8a2c24f263cdff78b62ada58cecd8c89c03d | [log] [tgz] |
---|---|---|
author | Dick Kennedy <dick.kennedy@broadcom.com> | Wed Aug 23 16:55:33 2017 -0700 |
committer | Martin K. Petersen <martin.petersen@oracle.com> | Thu Aug 24 22:29:36 2017 -0400 |
tree | f3c59de16e265298e2e46e80a358de9f8a73ef9d | |
parent | d2aa48761e4f102b672e9ff1b6c8d26af782b286 [diff] |
scsi: lpfc: Fix oops when NVME Target is discovered in a nonNVME environment lpfc oops when it discovers a NVME target but is configured for SCSI only operation. Oops is in lpfc_nvme_register_port+0x33/0x300. The localport is not valid so it should not have been referenced. Added validity check for localport 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>