Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9267913pxu; Mon, 28 Dec 2020 10:55:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJwXp3YiFIjEpF0Z1bakXWZtkKiGECB+ZNO4tpxc/fVXvzTDptOKFfAWLK7pCpFc8iKgMeGw X-Received: by 2002:a17:906:56ca:: with SMTP id an10mr42802733ejc.498.1609181717915; Mon, 28 Dec 2020 10:55:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609181717; cv=none; d=google.com; s=arc-20160816; b=R0qELWUgKbgLvyfBe/CNKqIoWRlPvwulqVgHE9fYCHo0f9GGCeEr5ozJrv/QRWQyfz a3Hy+33GNB//4ddR/aJdOYTv/U0gXR849PrUHgRf2KDcE1iBGQ9Jkd93xMEpaeVuZl6A ZfdyFEej+5uof9G6F030XRGQXdimnThbPtABFHQtFcOH9x5uqkXhz5VriFZceHKts3fm L0q7aFascYYGg1cuZtZmqV49CT/5vNG9z03Zq2eCoI6YLCwhVqzaQCyfx9AppuEi4WQ5 T3R16R0GvvobqqH+uxI95uCbmFGzu4DQm9GLE9+o2osrM1SaIvKPRKA69zDfeoZgRHlh yXRw== 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=gfUeLRcrPRn+61yHSPHzT7O8ErvFew6pehIS5CDcYbM=; b=Rq6ZH31gqCBjcH2vVQEwa33EQ94a1w8uQTXAwiuwkd2/BN0dM4DsLstPsxVh5fMy/j il2x5Ed0u+PInFLDJBRCHzipEdAUrqPBfxgYELNlw4F/Dqg49YXk0IB4JDbmR94Mu++v y0nqq9k20z1r/LJreTjcqQ8YwVWyXtRODWu/XkJHcp56uAkc3OZmop/McWt/B6tuM2Iz xKpCrzTkzrpc/2STjcYr0gPvBV+vFjGfOIe1Ke9b6rDhxdd9yhqS0JwzmpEqa3vgs3WI KhGk2Fy3UNki8gBIk/x+O8N2wjETC2vtDIj3DqW1AhG1ynxg4oVASSB9V55qgWB+W+TW d5Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZR1kiPjG; 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 bo24si19816601edb.495.2020.12.28.10.54.56; Mon, 28 Dec 2020 10:55:17 -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=ZR1kiPjG; 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 S2404892AbgL1Npj (ORCPT + 99 others); Mon, 28 Dec 2020 08:45:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:46524 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404818AbgL1Npd (ORCPT ); Mon, 28 Dec 2020 08:45:33 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 72FA321D94; Mon, 28 Dec 2020 13:44:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609163093; bh=RaahH4zvNx1tvI3noiSBUwMv2EpYdi2na4QXJrIujcA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZR1kiPjGlK1XBrVFkjncr4vw/gSs6wmnG/cLHQvW6pfWz27rml6G31iksR5k7a5Ir dfapPuUlmhd5QqYS5xaJj1MxsmaINiDS++wUVzo+SgwnKpDT+0ZWeFHNndx6thTQ1U 9hkP2xZdzBdGSYWCLQLZQqKVlOiwiiB/kHGS7Tmc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hulk Robot , Wang Hai , Kalle Valo , Sasha Levin Subject: [PATCH 5.4 165/453] qtnfmac: fix error return code in qtnf_pcie_probe() Date: Mon, 28 Dec 2020 13:46:41 +0100 Message-Id: <20201228124945.143698455@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124937.240114599@linuxfoundation.org> References: <20201228124937.240114599@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: Wang Hai [ Upstream commit 31e07aa33fa7cdc93fa91c3f78f031e8d38862c2 ] Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: b7da53cd6cd1 ("qtnfmac_pcie: use single PCIe driver for all platforms") Reported-by: Hulk Robot Signed-off-by: Wang Hai Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20201114123347.29632-1-wanghai38@huawei.com Signed-off-by: Sasha Levin --- drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c b/drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c index 4824be0c6231e..2b8db3f73d00b 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c +++ b/drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c @@ -299,19 +299,19 @@ static int qtnf_pcie_probe(struct pci_dev *pdev, const struct pci_device_id *id) sysctl_bar = qtnf_map_bar(pdev, QTN_SYSCTL_BAR); if (IS_ERR(sysctl_bar)) { pr_err("failed to map BAR%u\n", QTN_SYSCTL_BAR); - return ret; + return PTR_ERR(sysctl_bar); } dmareg_bar = qtnf_map_bar(pdev, QTN_DMA_BAR); if (IS_ERR(dmareg_bar)) { pr_err("failed to map BAR%u\n", QTN_DMA_BAR); - return ret; + return PTR_ERR(dmareg_bar); } epmem_bar = qtnf_map_bar(pdev, QTN_SHMEM_BAR); if (IS_ERR(epmem_bar)) { pr_err("failed to map BAR%u\n", QTN_SHMEM_BAR); - return ret; + return PTR_ERR(epmem_bar); } chipid = qtnf_chip_id_get(sysctl_bar); -- 2.27.0