Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp503180pxx; Wed, 28 Oct 2020 09:47:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3sMIsz4zxdrq+RPQBVNx0VEzxMZifw5y2vNoL0/pqtanKytYcJAZHp2KjI8AP5lPriP24 X-Received: by 2002:a17:906:3799:: with SMTP id n25mr8220752ejc.6.1603903677634; Wed, 28 Oct 2020 09:47:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603903677; cv=none; d=google.com; s=arc-20160816; b=ER193it6E7AQQN5psPl9qBXdLKtlMyu0KqOGU8FE5bBe3CtuqgsViIu9Mg9fss40qV b5ZFDr39k23G02OxmDdmNQz4KXhs+0qcrdxDtFWvXUCIdQG/TxkNkCngozEUQw53qDz+ uE310fiNdPDCAiwJ0YQnMbdpCS81QxbNvu4nkVQhTBeaD1nfDxv3P58HaINcC1duXB93 ZNkdsN7CsZ1OFVAHvE1ohvToBaBqSEeUXT21qmJO1JSRZAF9g0mJlAu2WRBk9tqR63uH 7MbBdhEr8FSCB2yCnVbzbaz2JyGiteB54jnqfRMZepPZ019vbRlw698/1hhW/k2yqmqt ZCeQ== 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=z2VO+OY7jX/w/OXXPEml3J00CE2KoXQyJvgdKyCNU5k=; b=mwAQf6MUFu6BflEuJVYSVrp8+7W+zDB4ycN56N2+EP5WD88WUO/fu2oGR4K/wYn5kG zkhzqccLZA0s1Zhc44YelAQ6xQWxFhR8Gy76lbh6g9ju1c5rSsrYH2irH4BHuZ3AHXsr sFcyKwfZVbRp75iWjSwmz+1C7+WQO7vxgRv00xmn4XRpDI3cxp6VOJIMRWLuvsv4/HBP 7RPJOSrDukYRAzbdOfTPqmfsQ65ipjH8ojBigVYoaABApwXoXWi+sP7esnB8SS+5H/GS JN/KBklW8PS2IE2k2AB7sIF8zHXLtBusNy4tPZBZAaZUKEZuobZ/DTluDqRh0xv/B2rs ur3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=eOzZEF1K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c8si22307edl.252.2020.10.28.09.47.35; Wed, 28 Oct 2020 09:47:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@kernel.org header.s=default header.b=eOzZEF1K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1818357AbgJ0RT0 (ORCPT + 99 others); Tue, 27 Oct 2020 13:19:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:57898 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1782498AbgJ0O5E (ORCPT ); Tue, 27 Oct 2020 10:57:04 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7C12B22281; Tue, 27 Oct 2020 14:57:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603810624; bh=a9mOVZyks44IXjKXxQ4aBwt7dalyEGA1I71/eP5IV0Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eOzZEF1K/ZyLfF1m1bO5nKKfpGwveh2L2NdYR1OdvthcgYn3MeTg5cVM7g/v/mrhl lOreMo/UJres8f6txWMHu+sa1T6HmF87dVegnDQikOsgO6hTyoaeeI6vONXFEbt9+k ES2qcwQ4dGATQhUIxbWngqd3UJV3oGOSj3uRUsr0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Praveen Madhavan , Tianjia Zhang , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 5.8 178/633] scsi: csiostor: Fix wrong return value in csio_hw_prep_fw() Date: Tue, 27 Oct 2020 14:48:41 +0100 Message-Id: <20201027135531.038377211@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@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: X-Mailing-List: linux-kernel@vger.kernel.org From: Tianjia Zhang [ Upstream commit 44f4daf8678ae5f08c93bbe70792f90cd88e4649 ] On an error exit path, a negative error code should be returned instead of a positive return value. Link: https://lore.kernel.org/r/20200802111531.5065-1-tianjia.zhang@linux.alibaba.com Fixes: f40e74ffa3de ("csiostor:firmware upgrade fix") Cc: Praveen Madhavan Signed-off-by: Tianjia Zhang Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/csiostor/csio_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/csiostor/csio_hw.c b/drivers/scsi/csiostor/csio_hw.c index 950f9cdf0577f..5d0f42031d121 100644 --- a/drivers/scsi/csiostor/csio_hw.c +++ b/drivers/scsi/csiostor/csio_hw.c @@ -2384,7 +2384,7 @@ static int csio_hw_prep_fw(struct csio_hw *hw, struct fw_info *fw_info, FW_HDR_FW_VER_MICRO_G(c), FW_HDR_FW_VER_BUILD_G(c), FW_HDR_FW_VER_MAJOR_G(k), FW_HDR_FW_VER_MINOR_G(k), FW_HDR_FW_VER_MICRO_G(k), FW_HDR_FW_VER_BUILD_G(k)); - ret = EINVAL; + ret = -EINVAL; goto bye; } -- 2.25.1