Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3673953pxv; Mon, 26 Jul 2021 09:09:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywwRU2zk4XCZuhj7IxOBSAqxhl9lTS6c/qu48NvhohgW2N24zqDsFCGGFRab5wFGJf8hpZ X-Received: by 2002:a05:6e02:1aa2:: with SMTP id l2mr12653268ilv.224.1627315764521; Mon, 26 Jul 2021 09:09:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627315764; cv=none; d=google.com; s=arc-20160816; b=Rp1kRBDYdHLDpbzMGmXClK2buamcNUKacmht0Qprm6cTrTp57O2YxS1SsCS5ahhqVU iBpal9ntXnAncQO8TYevxnLP2v6M/RXszR9COCtnM1LdqoUXhR7IOWAHm8QoEypIr82C 0cl1qrasdFu6CFrXvGR5qxf7SGEpCoRAtfvk1w0V1IOed5HV5zBBVS1VYhxP9CBB82S2 ge7wRIH8ohm0dNRqMNd3pXuT+eiDQM5DSAn+Q0m7x7J958zKYLk3bT+LJUNEsx03uwBJ wKmANq3clZrXr0ogPWN5G869K10MoEzYykVsCN9Kwi3LqNu0Eh/bK/lhRmO0L1BKadA8 zSTg== 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=08ySFUMjwv31G1pNPRo8HN0vD//mefz0On1wSSkAncg=; b=pcQc2JEit5s2Tx/VUEoxHxN0TTILwlYnd6FBbgvkpNhIp6asJye5ZRwxvw/o1MR3Xe XCBO4EWQh949eKcnDdwkrYBvicg9ALm9Hykut5KGRMdc7pdxuS/o6Nlda6fhLyE14PgZ Rs1tts7C3DAgFk88++Z2sqIqZxg2EZLBtFNIBepUe4Qt6/XyuAOnVcUZTKsY+pCbDpcM VIxQZb+1PSxD+V5/tCSRxSmuuos1dcDXyDs9JXS0E54zfdWa7BwUrWavh725DFK2p3sM eiyOl+ZOb/c272grvadxey/qDUjcAnvRPGvQIfF+BkwbF+Om/VLA/xHaXrr9zXYXnGum kGsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YPFViBG1; 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 i23si244433ila.157.2021.07.26.09.09.09; Mon, 26 Jul 2021 09:09:24 -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=YPFViBG1; 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 S237170AbhGZPZ6 (ORCPT + 99 others); Mon, 26 Jul 2021 11:25:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:54390 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237463AbhGZPPs (ORCPT ); Mon, 26 Jul 2021 11:15:48 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5F3CF6105A; Mon, 26 Jul 2021 15:55:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627314938; bh=MOm3AgzAI7/P5ODj9+sNPbd8LeN2zpGn/isStTBTWoc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YPFViBG19sjAs+g4rYJZSkTnHx21zNjITdwPFfTgGs1JbqqIdqBdQknzaKORuBVFk cbayobEbIsJU/tUZ7DQYBUwY6URd1a0WFINPGJCwMx18wMd3g97q0yP12FoY71D3jg 9cWNYN+Yp0pMno4yJOzRN/WOSgxAgki0TqIWP7Ho= 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.4 007/108] igb: Fix an error handling path in igb_probe() Date: Mon, 26 Jul 2021 17:38:08 +0200 Message-Id: <20210726153831.936011295@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210726153831.696295003@linuxfoundation.org> References: <20210726153831.696295003@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 09f2338084e7..bf8da4869c0f 100644 --- a/drivers/net/ethernet/intel/igb/igb_main.c +++ b/drivers/net/ethernet/intel/igb/igb_main.c @@ -3469,6 +3469,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