Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4293622pxu; Tue, 1 Dec 2020 01:03:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJx+d5QzejXiNSTCfsVjp+FBTQ1Qb1FKdLVG187/sODBHdVPTyV7fxrZVvRkuByXD9UqckTs X-Received: by 2002:a17:906:591a:: with SMTP id h26mr2057437ejq.174.1606813389351; Tue, 01 Dec 2020 01:03:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606813389; cv=none; d=google.com; s=arc-20160816; b=hppK8dcCQgkvGVeAsyIam+cpWWoSPYnRv/JAd/gWd+CZ7A9Vx3ygiCJE0rJRFqMz8o JzkHe7u0LXY0N5uKtN99SwUE33y15Ao6SpfvKghkMOqejF/WQvwGjP7VBdclchJNftb9 kRN8nTpPz2CVkbmyi7u73S0pIgpJM7Yiql/SBs6DAfOKErqZocFGSJykj89IPr7N4bV+ kHVElJj6fU7tlphgz9uMp9OEWLvZGMZe74Ioi7wTe073WnzwonoTbY3fUb/TqLZw/nG5 domszxaZHgVAY9537qyl2snUKQUfG7Wv5N4mC1B/YKSC5AZLKNzBHdBJ3mptIKU9IAJr rinw== 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=Q0mL1uqzr/9CdNSVvPXT4M8xxUUAKj800T8dqHybFH4=; b=OAv3pt4aQVJNc0hwg391OYf2dv16PQwlYPwc2eA+EXp7slMyBipixqRd+MDEEEJTns FdsrwKhZdKnd+UAmzXjZ6kYlGbqYj4T3p3Z4VkMPxNE9JLpp2dkis6Eu/2h9gLeSUnbL zra0nX3pwAD+IUTKdCz6jBJrbU5Ra+T8Kw1UA6OC3/w4xyeLmnO7tArPaleXwmjJ3QaS jxAX/+RKyD1j4e+1kSO+WrLriQABwUX7Fb1CP5NkpZkEJ8+/lS4lg2cOjdEo9edJopRo isfLezpbD6yC5a5S699wVXDWOT7zxZGMBgGSGXx8Biadmi4qEDq/d4a/b7v2sULpfXdh lB5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="R/XT753v"; 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 k12si726743edh.105.2020.12.01.01.02.46; Tue, 01 Dec 2020 01:03:09 -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="R/XT753v"; 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 S1727635AbgLAI66 (ORCPT + 99 others); Tue, 1 Dec 2020 03:58:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:34318 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388004AbgLAI6s (ORCPT ); Tue, 1 Dec 2020 03:58:48 -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 31C3F2224C; Tue, 1 Dec 2020 08:58:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606813087; bh=feyOVk9Nvd7raUGhgw0geW6B0Qe5AngkQVZq4qX3pvw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R/XT753vMsfHZGYDSqy5xp+07/1Uku4zb0RkG1Ui25Jj8ygTKymplLKQA5dyf3oqy jrU1vEpCpNT8Xpym2bB6ZcQBPYtjUA5KIAeFeHmPoX0QfGuuWEbHAehMWTafuY8FWp Ta/4cLqnlfpiHwbGIDamQD2VALd6ApmzzGBBq8Ok= 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 4.14 29/50] bnxt_en: fix error return code in bnxt_init_one() Date: Tue, 1 Dec 2020 09:53:28 +0100 Message-Id: <20201201084648.662941616@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201201084644.803812112@linuxfoundation.org> References: <20201201084644.803812112@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 b5f796b62c98cd8c219c4b788ecb6e1218e648cb ] Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: c213eae8d3cd ("bnxt_en: Improve VF/PF link change logic.") Reported-by: Hulk Robot Signed-off-by: Zhang Changzhong Reviewed-by: Edwin Peer Link: https://lore.kernel.org/r/1605701851-20270-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 e146f6a1fa80d..4a3ee5db19d34 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c @@ -8233,6 +8233,7 @@ static int bnxt_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) create_singlethread_workqueue("bnxt_pf_wq"); if (!bnxt_pf_wq) { dev_err(&pdev->dev, "Unable to create workqueue.\n"); + rc = -ENOMEM; goto init_err_pci_clean; } } -- 2.27.0