Received: by 10.213.65.68 with SMTP id h4csp424475imn; Tue, 13 Mar 2018 08:38:21 -0700 (PDT) X-Google-Smtp-Source: AG47ELuZHjJhn7h41IVppIdtVqnOTiQ7citP6cNCOGM+b1TR64D/OlCvihu6YecAq0UvSUjUpGVC X-Received: by 2002:a17:902:6b43:: with SMTP id g3-v6mr934923plt.153.1520955500983; Tue, 13 Mar 2018 08:38:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520955500; cv=none; d=google.com; s=arc-20160816; b=f1EtqDPpjOc94cKSspOBfHvp6X+oSKzbFYAjuXevll/tvArgTgnDY6G2JRb11HBJLO YwkP0WQHWxEJ5TNLeKMbK1Jt40BvnvIiHZQyb6cETcvt+LLUf7kEysTMe2NbVLmMwKEs wa7YTNFDa4MjOkHYYJXIdje1dQreCL+hk4cZvgZq+J3RQzHWHpdOytgl2VvHxxznOqp3 NhFfyex/x0e2pTsxaQovYClp6sfTohWviHBYLmXNk6n1LSdu8++jOR9XIdxqCJ41huJY 2IUqB3jvInojwO+vJ3s3VnwmdFJAPQCDqAIbB39lTtHQ+iRCvas0FPcCFEdpTLwMwqXu mFDg== 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=ff8gcn3j0iowiPl+13Sj3MEmgE6AU5bzFoWhgaQsm8c=; b=L/c1AaKD5XekgFrrK9i3C67N47iLlTl7p6MJRCtMBHeOM6pQ3r+MDBVaF7C4oXLcSl Bdib9bnbYxgAehMQCj3NOfsC61BrxFRvQBBxSdsg5a8LqoiuyztzQNYkB5294TNraNfm okEOA0TAxPu/A2GruTx/bcDJJCi9AnXHPwH3YPsE9z81GST5WtQ0Qzb4R3eOgCpS8aiC qWLcuV3FtFAQThzAWwaVy9X9UWrpXb9XdXjILbwRdM7keCfNFjgKEEjfAWJqGa33dRtm HLwVASu6OMQeMjIQ+w5uYUk6tSzQe1SvCr8K6Rpqo7veMK+tFZQRzAsxSi9b/CtGX2DZ i8tg== 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 c7-v6si274302plo.432.2018.03.13.08.38.06; Tue, 13 Mar 2018 08:38:20 -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 S934275AbeCMPgn (ORCPT + 99 others); Tue, 13 Mar 2018 11:36:43 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:33644 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752828AbeCMPgj (ORCPT ); Tue, 13 Mar 2018 11:36:39 -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 E172C10DF; Tue, 13 Mar 2018 15:36:38 +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.14 037/140] scsi: qla2xxx: Fix scan state field for fcport Date: Tue, 13 Mar 2018 16:24:00 +0100 Message-Id: <20180313152500.634088746@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313152458.201155692@linuxfoundation.org> References: <20180313152458.201155692@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.14-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 @@ -5788,6 +5788,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;