Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9395783pxu; Mon, 28 Dec 2020 15:06:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwjfsGQ+mKaYQO8bhcMDk1G1fsjjNdLFUCgYXBFf1E7jSZNDiS2F9Y1cI3IKVP0OgSLY1HG X-Received: by 2002:a05:6402:307c:: with SMTP id bs28mr44495887edb.186.1609196808323; Mon, 28 Dec 2020 15:06:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609196808; cv=none; d=google.com; s=arc-20160816; b=CnW4U2YAZOEs8s37SaP77z6V7DDcdQg6o3haYAQJyO6qKOhTn8Z9h/jOKewkOEZz5E VEdOmrIEV7Ib+z/jFTq4Z/Dt0096jFfKXOFM2qJfX5EGvUcTxsQ89ITEc21xVBOoeo6+ 0dFv2N1AY6K9oVp41eca44ephu0rLseDHWJV+9uQzxm33gLh2h8M1Zwr2x/UlIoPXPwX Ue7SbrdUHG9c2hPy3hyUJAkMI8gXTGJrnNmqcjclX38sOg1mNKfUZ2GbWNIwStUA6ZqT dZOooFjSkNqcCX8dCVOOhou8foAQpTJaTdmJxdPduKlwr73ra9yw/M3AfaOr40B6224o Tofw== 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=/itRC1zOBqBN5zudS+wZ5jKtm34TFxdjzWEk/1MSsN4=; b=fBgF0hFgAFiN5stc9+1LsMeK4I3S9ZpMcuUwda9j6ZGDbH/Oaftko9b5s02RDnm0vd RIKnxR9ogfHcLVxiV++XkK/SUd+zkgdnlADO1Q65TB42P026+JHjwpvJAHFnY5smT4vg VJJmWgChOMAD9bD10zSmW8s65KyDN/ws9W6U+hLdpHoLMLybvWNbXpSDAREnQZeaHWt8 aHGLi9DnEIj8pSkVXPx911Lb7i7xK9Yv+Lnx7wHvW9RJUcxtDDyyMyicxaHY0pCIOxtD 7xI7dz5UbQne8Zy0MAQnRBrc+3CWgpwspXagIe8+zQT7tO8/2R+Ig9bN5zHJAzL2xq5t 9zyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ljJAKO9+; 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 i8si21013137edr.271.2020.12.28.15.06.26; Mon, 28 Dec 2020 15:06:48 -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=ljJAKO9+; 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 S2438734AbgL1OIz (ORCPT + 99 others); Mon, 28 Dec 2020 09:08:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:43352 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438717AbgL1OIv (ORCPT ); Mon, 28 Dec 2020 09:08:51 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id C85D0206D4; Mon, 28 Dec 2020 14:08:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609164490; bh=jAOjQE2Thmvh0+P9hIbZqSU8IQfXLj4L9XRYNK+rX0g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ljJAKO9+FOWKbt+IO7Hyat+HgCHXH9E7nHPDPO4TH6TgPxvTJleDf320WlxC0vbLG KWl3yGeMbosIFQD8yrcztg3lIh63p7K2duvnLxv+vQxs9BtDn5ygovPvPI0CYN2ThI 3P53uKDOY3/YfRcKS84l6mfMnxfIckVK72dfw0kI= 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.10 198/717] qtnfmac: fix error return code in qtnf_pcie_probe() Date: Mon, 28 Dec 2020 13:43:16 +0100 Message-Id: <20201228125030.460189932@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@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 5337e67092ca6..0f328ce47fee3 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