From: Quinn Tran Date: Fri, 17 Nov 2017 22:45:36 +0000 (-0800) Subject: qla2xxx: Fix scan state field for fcport X-Git-Tag: v4.1.12-124.31.3~1441 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a76ee99512580c8783331d21387e1444e651af35;p=users%2Fjedix%2Flinux-maple.git qla2xxx: Fix scan state field for fcport Orabug: 27235104 Add correct value of scan_state field indicating state of the FC port Fixes: 726b85487067d ("qla2xxx: Add framework for async fabric discovery") Cc: # 4.10+ Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani Reviewed-by: Hannes Reinecke [ Upstream commit 76f9a2dd4c60183879a1898bcd56a1dbab19a85d ] Signed-off-by: Somasundaram Krishnasamy Reviewed-by: Jack Vogel --- diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c index 35c6794c2f61..7f8da2f2fe8e 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -5552,6 +5552,7 @@ static fc_port_t *qlt_get_port_database(struct scsi_qla_host *vha, tfcp->port_type = fcport->port_type; tfcp->supported_classes = fcport->supported_classes; tfcp->flags |= fcport->flags; + tfcp->scan_state = QLA_FCPORT_FOUND; del = fcport; fcport = tfcp;