Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp407408pxu; Tue, 1 Dec 2020 14:29:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJwccZyKE2WMc+bOlln1iYD8HA0fIHdBoLO7WXVFvPFoiCa+SmZxQHxgqwKkSMLBjd7c+kfT X-Received: by 2002:a50:a410:: with SMTP id u16mr5397300edb.274.1606861791812; Tue, 01 Dec 2020 14:29:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606861791; cv=none; d=google.com; s=arc-20160816; b=HkujHa3LEJ9oB4r8xFUypmgEO7gD9IF+NKRCM/vrclCm0eb6M9woS/Oew61zK6ZBhW BuYG3Tv3TTubiNxCFPPDbmEKLOtwvNsGOWZkhppPyViBmzIax29Ws31UrjnHVepqr0YS YmQs/1dYmYEcsquz32Voh70i+9EHXkUlCMz7Bn1dN03BYQ1gNmzvKRk8qlx8jzJHmLyD fHYeWpEQo8rxD114xZZ0YjX8AbDjre4GF5OZcR4JuElfJ20cHwxUku/Fdv/gIPCcEqJB RBEpEdHVeXTXKnDr6isRv0FUe8iIo5RTLstYJuXspGDAUpO4AxB6WiFoFYY3ZaDB0y8U 5n4w== 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=xPwkld9awGFxnLknbVY0yW6SDVCziGS0ZYD4NXb3hmI=; b=dONfNe33MxKLqFbRzwTrwgKK+xbV5Eg+E5JhjikAKpxyXPqujzpzd8Bebu4cfD3s1g +ISlllsNu3AF41NF7u4zHwb8HUeJLPjHbHCcFaRnT1DrdYUQzB5unYSS++70D+X4ZLAd cyU31WdlHkboWeXNY4QbguP0pNd8XyIFs4/Fwl0pjB0+M+wNWmG/7i2Qf7q2vbNXmIGx sEkC0laBFKZc6gTy8J2Rd0IZJ9eDRE8zpQhn9AFkm4361bnBDEnW1pGzJcKHadMkOmON MMV1O/NKFnesqYhHqWuZwMBnfOk76VflmjybANlm+oqIxw1+Lergp188EUWYDImHo3GM htkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=o1oeLCAa; 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=pass (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 j7si709367eje.191.2020.12.01.14.29.29; Tue, 01 Dec 2020 14:29:51 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=o1oeLCAa; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390422AbgLAJRc (ORCPT + 99 others); Tue, 1 Dec 2020 04:17:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:49904 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389870AbgLAJLw (ORCPT ); Tue, 1 Dec 2020 04:11:52 -0500 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 5FF4420656; Tue, 1 Dec 2020 09:11:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606813872; bh=rO+1+Ukn1sRqbdTuV9SmJQX3KEKIot6k5j63wQTFkiA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o1oeLCAaZjrsdjpBhUZEypuR8otzQDUNOiovPpsLTh+LfroCSAm5idLv8ynGQKMVj pqZ7o9U+WombPTDlt+LiswUbvGc2S7dTXqCFcA1OGczaxPhI/wZTQJx/ppkBFCI1Xv +VhQAdu/CuSsJt8Q2V8X4n+Aq+QJCfJcKH8+KpT4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hulk Robot , Zhang Changzhong , Edwin Peer , Jakub Kicinski , Sasha Levin Subject: [PATCH 5.9 089/152] bnxt_en: fix error return code in bnxt_init_board() Date: Tue, 1 Dec 2020 09:53:24 +0100 Message-Id: <20201201084723.533516308@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201201084711.707195422@linuxfoundation.org> References: <20201201084711.707195422@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: Zhang Changzhong [ Upstream commit 3383176efc0fb0c0900a191026468a58668b4214 ] Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: c0c050c58d84 ("bnxt_en: New Broadcom ethernet driver.") Reported-by: Hulk Robot Signed-off-by: Zhang Changzhong Reviewed-by: Edwin Peer Link: https://lore.kernel.org/r/1605792621-6268-1-git-send-email-zhangchangzhong@huawei.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c index cb57e8ce368ac..f726c91a9b3bc 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c @@ -11273,6 +11273,7 @@ static int bnxt_init_board(struct pci_dev *pdev, struct net_device *dev) if (dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64)) != 0 && dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)) != 0) { dev_err(&pdev->dev, "System does not support DMA, aborting\n"); + rc = -EIO; goto init_err_disable; } -- 2.27.0