Received: by 10.213.65.68 with SMTP id h4csp451187imn; Tue, 13 Mar 2018 09:27:33 -0700 (PDT) X-Google-Smtp-Source: AG47ELsPN5xRg7sG6/fViJdIIFj7tYUNz20SczWLFfB2grMMhMSvQxNIlhMuH0pWE2XSNHiXbUcU X-Received: by 10.98.228.3 with SMTP id r3mr1166542pfh.77.1520958452947; Tue, 13 Mar 2018 09:27:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520958452; cv=none; d=google.com; s=arc-20160816; b=n2566Pvn6yddBj6yT/WL5VAWoTSdSvsmAKQPB+bNfP7vz+psnFiir2pY4PBMthoaWa 35PL+9nsO5j6xDckHsAOzPBUil/KF5drwvvc9C8AONSP73Sb3WzRSsCRQK0rPwX4ZqGz /yeSC54/zyAI5ezXCRYrbEEwUldtd3Io7nylrn4MxqFt90Bz5sx1tMCXrmmQT8M+Vfx1 23JkEoAYMxDHIsE7N8jqt9OEGWGC2GBolkz9wyH2J2KnivEhK/gEJdqzjQuG05MW07e0 hJ9ZCz8rmTzwzImcoIhQZFYrqeVPTrCxa+hnxZdJcmZAGCnLWEbrlCUWR8q5lhz4Kn7b AsNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=sIBLHixZXeSj8iEo89qFATsepaEQwk+dWFiS9QYM868=; b=xfsKB/s5p/f9ZnZ6wDnnWbAnpgGInNLHNVZSXupmeM6tlL4p5Y/WKm8lxsdTDM9Re7 ik+gB6Vypjf1resgnzOaX+agb2040MV0M4VxwWRLyxSCXa11QJvR7XMz/74KLzIk4Dgc qj3BZtXPTS/nT3iO6rG7LVFTPzJSjPZS9ccMHKWHpDyspSAs7KMVF70pD0Z4PeO0aiI6 n0PDc/Nybq/NmfzOph6M8D6I+FZPUQKl9SaMQK9fISYOoM2cQFMqbkmt7HHgxtdCh+OV TRfL/qRx18dNzS8qOK1tIgK/+OS7Agq0j4kS0VEj69iDQAHr6/WexK+vqnORODZC4wvJ eGaA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 66-v6si334073plb.314.2018.03.13.09.27.18; Tue, 13 Mar 2018 09:27:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933855AbeCMQZu (ORCPT + 99 others); Tue, 13 Mar 2018 12:25:50 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:60928 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933599AbeCMPeD (ORCPT ); Tue, 13 Mar 2018 11:34:03 -0400 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id E963149D; Tue, 13 Mar 2018 15:34:02 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Quinn Tran , Himanshu Madhani , Hannes Reinecke , "Martin K. Petersen" Subject: [PATCH 4.15 138/146] scsi: qla2xxx: Fix scan state field for fcport Date: Tue, 13 Mar 2018 16:25:05 +0100 Message-Id: <20180313152330.721572922@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313152320.439085687@linuxfoundation.org> References: <20180313152320.439085687@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Quinn Tran commit 76f9a2dd4c60183879a1898bcd56a1dbab19a85d upstream. 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 Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/qla2xxx/qla_target.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -5811,6 +5811,7 @@ static fc_port_t *qlt_get_port_database( 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;