Commit 76f9a2dd authored by Quinn Tran's avatar Quinn Tran Committed by Martin K. Petersen

scsi: qla2xxx: Fix scan state field for fcport

Add correct value of scan_state field indicating state of the FC port

Fixes: 726b8548 ("qla2xxx: Add framework for async fabric discovery")
Cc: <stable@vger.kernel.org> # 4.10+
Signed-off-by: default avatarQuinn Tran <quinn.tran@cavium.com>
Signed-off-by: default avatarHimanshu Madhani <himanshu.madhani@cavium.com>
Reviewed-by: default avatarHannes Reinecke <hare@suse.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 063b36d6
...@@ -5811,6 +5811,7 @@ static fc_port_t *qlt_get_port_database(struct scsi_qla_host *vha, ...@@ -5811,6 +5811,7 @@ static fc_port_t *qlt_get_port_database(struct scsi_qla_host *vha,
tfcp->port_type = fcport->port_type; tfcp->port_type = fcport->port_type;
tfcp->supported_classes = fcport->supported_classes; tfcp->supported_classes = fcport->supported_classes;
tfcp->flags |= fcport->flags; tfcp->flags |= fcport->flags;
tfcp->scan_state = QLA_FCPORT_FOUND;
del = fcport; del = fcport;
fcport = tfcp; fcport = tfcp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment