Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp409095pxu; Tue, 1 Dec 2020 14:32:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJxVUfUFqhayTw1X8kmBsEaizzbhawLq1vzVMQoIuxD027XcGcx9wYfoC2Id4tCFQnNGGlmp X-Received: by 2002:a17:906:7813:: with SMTP id u19mr5214769ejm.153.1606861962696; Tue, 01 Dec 2020 14:32:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606861962; cv=none; d=google.com; s=arc-20160816; b=oHgrMqcEw1BoYm4QyXz6ZeW1cEd40Z22rX7qkw2Y7n5oG+/j3BNY1sL/LmSuK4W5zO pZApg7PDNQPXUniT+y8u3dtNtoAa2B7MxNBebu953rW84eBJdTZC72FkQRpiKsGxaPnn rhWnR5aeLpOKQH0utnQElzoNvWYJJfUBR3z37lthSHz6+edzkFqIz8BaMG+VqbcDPifx gmmwyFJfpZCp8e09Axfw+f7VtkntPlFl9xQTxg6YOYFIg6PLGcLxgDNMjsvOdwYIAWyP gxgDPAIQoy0PmXtO1fodBfKf5c96MD0EH8xWKKmBA5I7km4B83Lw5/TJAQ04gaHnSgOk 8+3g== 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=nhoVcjPJzISnpOlq3Iuqbu8/OeTJnp3GZx7Z0j5kWb4=; b=p964WK6pSep/heDNX0u5cRl/VZI85ABYPXhiwF6zJnEWBZe4sZNoz4N2WKQIR5Fx4x u48hS76LzK600tHe6M6HNGMPhaJ3Qat4ovkQWL2qORpeZHhhehbFQjU2OfWx3RMo5/hx eR/T+IaGMZI5JscAg/B4txX0RjDeqGJfRWbhfQuu3bRuIGTxuXBSA+Bc+IjKz9X2yVMK KTFUyJW/CMe24fwkztp0KMYDbkkDFcxFOMVbKZ5no8d8pyLQreRzo+LBaVedfiEhAatT nOk8Vl5BGPA58BpszSvG6hKNZ9rlDXYT0oBDIwQ9pZpaiqOKxRzANRV++uvLrwki8aZD HMpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=m3BzsOuT; 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 b6si899488edv.126.2020.12.01.14.32.20; Tue, 01 Dec 2020 14:32:42 -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=m3BzsOuT; 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 S2390973AbgLAJ0O (ORCPT + 99 others); Tue, 1 Dec 2020 04:26:14 -0500 Received: from mail.kernel.org ([198.145.29.99]:42250 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389059AbgLAJFL (ORCPT ); Tue, 1 Dec 2020 04:05:11 -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 A10802067D; Tue, 1 Dec 2020 09:04:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606813471; bh=rkhpGkWkjRCxMiuDc2xAGxaJL0Hk7Hov1pr02vYK5sI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m3BzsOuTRmzZDGJAc0J2C23wKYL+tuhGLCdB+wVW3+rvCtp302JDkHein/sG2HdVQ IG6xhFBMMmveAQxb6SNQiDafaTEryhSPAHQCZhJmOO5ZCB6zlF930UTKnXqPwvZTdM 9/dS5WWpTFifkFBQ5f0AHAcPvDVlvSaO6A+nmcKA= 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.4 50/98] bnxt_en: fix error return code in bnxt_init_one() Date: Tue, 1 Dec 2020 09:53:27 +0100 Message-Id: <20201201084657.547924190@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201201084652.827177826@linuxfoundation.org> References: <20201201084652.827177826@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 6f777e9b4b936..4869cda460dad 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c @@ -11892,6 +11892,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