Message ID | 20210524152322.997166477@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp3442846jac; Mon, 24 May 2021 08:32:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNTl1Yk3rXBFvHbW04/VEYeLM9KO/EO+Wx3TNFKUyefxXr30TJzAc/TDRjnbAtBhU+duph X-Received: by 2002:a05:6e02:1c42:: with SMTP id d2mr16405106ilg.286.1621870332780; Mon, 24 May 2021 08:32:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621870332; cv=none; d=google.com; s=arc-20160816; b=eYNefhZAQqRYj3u8Wb7hLRpUyCOGBbEZcUenjaJGAnmLNjX0QHzQRUGy4JpKMXldNb F87Iz08GxUzZ2kCouYEgXi4hw5kQ1KwOkf+VHzMei9lDc0n+xA1Czn5wS/hINTAPoIJj DBu65+AK2MlpL4yBm5ME3I7biHvXBH1EBv24vLyy4DxGkUVx4YXoAhiS4cafIC1vmIKH h2wwIAWNlHC47WLoX0DOl7dotx6ojP3kXdvdAudtDuL2zI3iuoHMuqVPJ2RR45biQ0WN lBXSjny3THvCmjRy3CiA7MpDSZVpWjceljU4x8aLoaOmmL6BGefRzoBpForf4lQC97Cm T2yw== 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=oRKu8qqy32sR1cmy5qe2t6F3Z85Pw518nwiLsObV2mI=; b=Cp3Ajg7/Y+5kAlw7KpCDxXdLU0KDdagYS/Uk41FyTP+3Nmvyn7pmOmuRxJehtkuZQI 1v1IM65Kffhpw5F/marTLqwf+R8+4NkbMru/yyT+jdB/mdLmBeuTigo3DVf8MPIj6DIi YqXEwz7oHlxd/QknBdZkobCgzjvdyYQZ5cb4/V/DhpSPDtcGOboT4M7MnVg/yngRnrc4 ApaZh6l/ZVWAI89aMrQdFdgZSHujDYJtBhCkFVthdsFHhJcBYtpb+9xonPIT2bAyckch PFveHzdhlnV8sc4YBowyigp63G6C7KcWV6VF52opRZGrLrfxgkfo5LoieoI8FV78sUUN lETg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MbwVW32q; 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 a14si14660967iol.90.2021.05.24.08.32.12; Mon, 24 May 2021 08:32:12 -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=MbwVW32q; 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 S233467AbhEXPdh (ORCPT <rfc822;semen.protsenko@linaro.org> + 12 others); Mon, 24 May 2021 11:33:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:50520 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232614AbhEXPcl (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 24 May 2021 11:32:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B6E21613C8; Mon, 24 May 2021 15:30:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621870256; bh=Tp4gqflkcR4lqwbOXiZhH05st7l+CzZaGalYySy33c4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MbwVW32qPQwCiHiVWGZItig56eUmiB+XyD8QrYwEyY1Xus29W7/G8R+sVWGNbeUpg XbuDgwdKyRUkusYv7YEqSQCHlzl/x8Q9qpgZ4sqoWMPypZ5TpISfg0IWOp9FJRMsnT MMZarLTLO0MrfFiEg5LG26rcY3D1BA56mMNjZqlQ= 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.4 02/31] scsi: qla2xxx: Fix error return code in qla82xx_write_flash_dword() Date: Mon, 24 May 2021 17:24:45 +0200 Message-Id: <20210524152322.997166477@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210524152322.919918360@linuxfoundation.org> References: <20210524152322.919918360@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 65f8d2d94159..46f7e3988009 100644 --- a/drivers/scsi/qla2xxx/qla_nx.c +++ b/drivers/scsi/qla2xxx/qla_nx.c @@ -1103,7 +1103,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);