Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3711622pxv; Mon, 26 Jul 2021 10:00:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHJ2kS4ZObyyUX+pczrhzdTevn5ky8eKs7Kvg+5L1LunUj8k12VZTyRbvi8KZvL59kXj8R X-Received: by 2002:aa7:d353:: with SMTP id m19mr23530816edr.162.1627318848026; Mon, 26 Jul 2021 10:00:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627318848; cv=none; d=google.com; s=arc-20160816; b=MC1xSv/UcERctNHi0cQuKeXk0DGUWYpRqwJxqc1CivaLT8QORtUkoPN1AOYWn3x2ix l9QUEOrcLoE1oTENbq2W6aSdBmTiRhUBUiMIk26cfYnE1t6kuEaxceum4GvVJU2630eF GznYKxIXIP70OQdz062m5x3ZMlKA0v/BUXgGjq3q67PG/40JASVxcl2lnzgOrijY6oC9 jkr+bieiqMr99RJ/PsuJqngqG7uGFTpLJyMFCHjj79J1krlo+ZdcSf8MgN5ZsK+1rEsF mCkw22cFLsuxHergnnKkMCrBczUGW4lrSkXD1Mst08ewK+xbEPCjiakazsIhQ3GK0WdK dPmg== 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=L0NLvCs96GUkd+MqxHWQSQgdaA/btFyFs7HgGHsJd54=; b=0t/5S9IyX4EQoUiZBrLyKKG+ZUljHF1oi9othbVBRbIvoj0j9XV0rDss8iSVBTxZ4D ot2eOk9DXW9IroPkU9XG/M4uffzc6XwTkXbTnS9wBNO8FxwmVyjVQD0Xx+yZwVqqyZ3n gDSrCDCsmDpc/pMn105TSCYdnzJ02GsQZAFymFM5zr4MWiupuRfAIZKk5FjGLCreUz26 SlXUkkwsGdFzE/ssjDP0Uz4ulvlKXuPSaxPcgNRWcB5BzIIV+8x/52cObg78KMj3a6U4 ABo7oSPjbAyldSMFMU56optfuqZ+tIW+HNp8DcsUVfCP9tBI/RmT0TgIwR5cwuLIj81F KeTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=l4y3+cuV; 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 n8si504725edy.15.2021.07.26.10.00.22; Mon, 26 Jul 2021 10:00:48 -0700 (PDT) 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=l4y3+cuV; 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 S234251AbhGZPgX (ORCPT + 99 others); Mon, 26 Jul 2021 11:36:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:34802 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237083AbhGZPU5 (ORCPT ); Mon, 26 Jul 2021 11:20:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5EA8460E09; Mon, 26 Jul 2021 16:01:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627315284; bh=e882il2bydtuy8UYPCNWU1xDPgHUWdrpAEZEA1DfvRc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l4y3+cuV/7FXQV//XMQpc2u6Na2LbwHyPcx40xkuuaSKYB8zdSiRziFFRPESJY/Nh on4LC5MhH7yk2xR7id42zvtFTY5C+CAACa0lxV/jWkIBfyqNEUbw396if9Pz+Z7x1Y gi5vLHN2LLG83Nec8fCxsJW1I86tRlGUR/teWC/8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe JAILLET , Tony Nguyen , Sasha Levin Subject: [PATCH 5.10 009/167] iavf: Fix an error handling path in iavf_probe() Date: Mon, 26 Jul 2021 17:37:22 +0200 Message-Id: <20210726153839.680340372@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210726153839.371771838@linuxfoundation.org> References: <20210726153839.371771838@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: Christophe JAILLET [ Upstream commit af30cbd2f4d6d66a9b6094e0aa32420bc8b20e08 ] If an error occurs after a 'pci_enable_pcie_error_reporting()' call, it must be undone by a corresponding 'pci_disable_pcie_error_reporting()' call, as already done in the remove function. Fixes: 5eae00c57f5e ("i40evf: main driver core") Signed-off-by: Christophe JAILLET Signed-off-by: Tony Nguyen Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/iavf/iavf_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/intel/iavf/iavf_main.c b/drivers/net/ethernet/intel/iavf/iavf_main.c index ebd08543791b..f3caf5eab8d4 100644 --- a/drivers/net/ethernet/intel/iavf/iavf_main.c +++ b/drivers/net/ethernet/intel/iavf/iavf_main.c @@ -3759,6 +3759,7 @@ static int iavf_probe(struct pci_dev *pdev, const struct pci_device_id *ent) err_ioremap: free_netdev(netdev); err_alloc_etherdev: + pci_disable_pcie_error_reporting(pdev); pci_release_regions(pdev); err_pci_reg: err_dma: -- 2.30.2