Message ID | 20210524152324.271300943@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp3444233jac; Mon, 24 May 2021 08:33:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYL7dmWw7jrYIjE0OjidOWWvzhM+sOIteecflyacQe8Gbsb7U7nKRqIFYNQ/xYvt/Efwes X-Received: by 2002:a6b:f60e:: with SMTP id n14mr16680956ioh.179.1621870423658; Mon, 24 May 2021 08:33:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621870423; cv=none; d=google.com; s=arc-20160816; b=PDFluMq+m/iCJthQ1jBDvzFHrWkPKi6Fhrx9aDjDQuVtWwmtmIEnIj7uwYK9im3YGF JoWFqLx+b2TNTkxCgq2TzqTp9YmmMsPVUy0zwrqyI36Ttiku64hERQOGidnr5b50H0SJ 1sIU5GTIfU4ASgEe5Rb6pX7GfiYn+LkCdOsKkd/i5SYjHF/nAjhl10O/gH8fnoimr15e kh9kwKK8s72/kWzoI5gq2QrJCm9nTrfbdSUu6/GK3l6do+OTHGS8rHPRJqc4OgP1ND06 pnK/al/8deVtrB6OtHgug4w1AEXe3pobbCxuY6IAfrVERH0FbqoUXVR8lO2ONUE8yOJd 8E2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=1GBpd5Qg7XTcCHhGSczxW7RpXPlIB4JHFQCOB76x52Y=; b=h1wscc/vaV4NNlu7/Vl5J5FIiP8xvQTwOwyfEwiQNopFMRw9CgG5oCa+Ym0Y2zI72B 0s1AAxNWNo9YG7FJXqsYnXTGnXGto+lq9FIsuGLFBuq60lgB3+DtTrPH9UQXIYQBejwn wWDVZPSParFBsc/LCycMCrfgd2cfm59sI5/+tiNgRGIU2NnYtIYQb3u/h1jV9r6XJ6aU YJbYZ3HwsQwk0FpYDUgY84Mt0whq2HcQIvuSv6+zykhPFi8VxxvPZzpibXyV3JTsxpVF W0Cy3KWizElggbbk4bpdCe5Y3euiWAQzmh1LIisPliYgWyxPbi4SJZI2YNG3DcYAvQqP Lk8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=n0zM92tl; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: <stable-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m14si14266292ili.85.2021.05.24.08.33.43; Mon, 24 May 2021 08:33:43 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=n0zM92tl; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233520AbhEXPfJ (ORCPT <rfc822;semen.protsenko@linaro.org> + 12 others); Mon, 24 May 2021 11:35:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:51622 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233552AbhEXPdm (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 24 May 2021 11:33:42 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3B35061402; Mon, 24 May 2021 15:31:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621870307; bh=jCp0YRJbgFC5eVgFlVGy47mXapRW3TuuftW3gE4nLDo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n0zM92tlUW/emJP9trLGQVbHAnu+TnnWzxdzIFdNMxST1rbaToOBdu2i8RlrilA4e lZUmGwi9auraJ8T8V08i/bweCRLUj/szBlXeDLDCqRnHo0QTzFcw33oTMfdLGjSvSx b9U7wmJL8EbZjHqtsvzL7Ps65ddmYjEuWB/I13KI= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Hulk Robot <hulkci@huawei.com>, Himanshu Madhani <himanshu.madhani@oracle.com>, Zhen Lei <thunder.leizhen@huawei.com>, "Martin K. Petersen" <martin.petersen@oracle.com>, Sasha Levin <sashal@kernel.org> Subject: [PATCH 4.9 03/36] scsi: qla2xxx: Fix error return code in qla82xx_write_flash_dword() Date: Mon, 24 May 2021 17:24:48 +0200 Message-Id: <20210524152324.271300943@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210524152324.158146731@linuxfoundation.org> References: <20210524152324.158146731@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/drivers/scsi/qla2xxx/qla_nx.c b/drivers/scsi/qla2xxx/qla_nx.c index 104e13ae3428..9ec18463b452 100644 --- a/drivers/scsi/qla2xxx/qla_nx.c +++ b/drivers/scsi/qla2xxx/qla_nx.c @@ -1102,7 +1102,8 @@ qla82xx_write_flash_dword(struct qla_hw_data *ha, uint32_t flashaddr, return ret; } - if (qla82xx_flash_set_write_enable(ha)) + ret = qla82xx_flash_set_write_enable(ha); + if (ret < 0) goto done_write; qla82xx_wr_32(ha, QLA82XX_ROMUSB_ROM_WDATA, data);