Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3743218pxv; Mon, 26 Jul 2021 10:48:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2jzycTaKhRS/fu2a9zN+U/03Pw3+u+kqMQ69eax3cbWuEb0YOENtD89fH3QgzRTX23oPn X-Received: by 2002:a17:906:b53:: with SMTP id v19mr17537701ejg.262.1627321692718; Mon, 26 Jul 2021 10:48:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627321692; cv=none; d=google.com; s=arc-20160816; b=hUTnkI9dGZ6JWWCeO+6JHFgVq65S068nLd6MV8wQDk8O14R35l9QspDlVBnW4P24ct quF7dWuUxw9n5XGsf3eqnzILeUtH/PzzJBNnM2NBl/FdxQ3KQ0hoJoxESXcLzu5M9u/k 1Oyb1vI5CfDabxbgCTWdM54k31c8gXlV1/nLGFO9EsgCSwt6eFp8bE82ma4hgI31jRE+ 7g4yvJGokkIKuwuFVhQXVXqPKoxIJ4Bv7lttf2uV7rJ3NfMCBvRlLlnz35g1EWSFuNPG epEkZfRkdZRBxx3ZZ1Wa5+C0uwswaUwQdOXeXE6HzzcrPKtPEBUwpVgsekHQp5LhFwm6 /GrA== 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=/lZ50UJdNsBrmR57b8K6N5lRXVKcdP7daPrn4QvwOHM=; b=zFz3zvEeCcR+LaK11LgGJGRtnoaAXBup77bwosXZMgugFCoN9rG5Fxl4dl777xYLTd NtEnC9KuYvuO+tkkB3KNlv6BaaezVsC5RmgjlLK1Va+wJOFfjcDg68O0SiPVv5Nlt7f7 I4LBRxAKy+vcaEu+0vlNJfmhajBXYJfnp5/EU2YB25CMqJxpnglZewr9bayNXTE78kyb /Z6YunkCHKOSpk9l6V0MHVyMXn0JY/yKi+JAAF78ZHHFZNRogZiEUOTM4Fqs7A/1oGCO aAr6ZaGUFgXnl6Wrc3AUplTCPBbK7Lk4wRA4cUSSr8QuNnRAtjYyEXOFLDzLoon8IPch GU3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZlE1c2Jq; 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 dn25si540142edb.332.2021.07.26.10.47.49; Mon, 26 Jul 2021 10:48:12 -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=ZlE1c2Jq; 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 S237116AbhGZPgE (ORCPT + 99 others); Mon, 26 Jul 2021 11:36:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:34510 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237073AbhGZPUs (ORCPT ); Mon, 26 Jul 2021 11:20:48 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2D72B60230; Mon, 26 Jul 2021 16:01:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627315276; bh=mEYG4fvcnGPSjKjp6IbyUK0XvSK+0+7wUJ7nmnNgqyk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZlE1c2JqaPScXBrvKFko5wa5mjQ/Ekaoz2FX5MgiPndiHpksV9as6fFvzRsqpE58e pbNmJiluMjgv2dWmpWhBaXY3OMdM12DLJJu3G9KGV4VIGOmozojfbeengByvNJBIEZ CXdlB3Z810eCRMzI+0w3uGg9rGGLd1RWWgz9I2Jo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe JAILLET , Tony Brelinski , Tony Nguyen , Sasha Levin Subject: [PATCH 5.10 006/167] igb: Fix an error handling path in igb_probe() Date: Mon, 26 Jul 2021 17:37:19 +0200 Message-Id: <20210726153839.581310742@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 fea03b1cebd653cd095f2e9a58cfe1c85661c363 ] 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: 40a914fa72ab ("igb: Add support for pci-e Advanced Error Reporting") Signed-off-by: Christophe JAILLET Tested-by: Tony Brelinski Signed-off-by: Tony Nguyen Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/igb/igb_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c index b40654664025..43f2096a0669 100644 --- a/drivers/net/ethernet/intel/igb/igb_main.c +++ b/drivers/net/ethernet/intel/igb/igb_main.c @@ -3616,6 +3616,7 @@ err_sw_init: err_ioremap: free_netdev(netdev); err_alloc_etherdev: + pci_disable_pcie_error_reporting(pdev); pci_release_mem_regions(pdev); err_pci_reg: err_dma: -- 2.30.2