Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3934102pxj; Mon, 21 Jun 2021 09:41:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHjxXIgXRjsGHibZs+qPIiVgM2Q2pSieg2p0z8pzZL5vykimuW1bKI/qL46x979YQXSCy2 X-Received: by 2002:aa7:c614:: with SMTP id h20mr4858971edq.67.1624293678026; Mon, 21 Jun 2021 09:41:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624293678; cv=none; d=google.com; s=arc-20160816; b=ALrOq2hhSC/JCrc/QAxri91kolpASuytJoTbhx0EZqkinG2LsE6jrRm6R2rOIhrbR6 lVeAgqO/FutjK/06hBx6wpwjJmZ4jT661IPWcMVcWf/KHm9jZc+HrMV4y30LKWDS3utB BXfI2eJhXfrwfuyK1yRnU/W3hd8qb7Z144BHthj9oL6qSXHM+NSrFLQCdQO8oqezfsv+ x3hW54PzEDRulMeVJqKoJdR4XUFcOx3fQKsGYYDBi13EgSfXzuYZxMK/W0bHCpTx7F3J JU8envGo9QOTFbP3KEKbcU/hDenrv79ZwNZfxV6EAShdqms+DZimwDv/VgW1vpZjBSbU LrUA== 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=+vb4D44FsrYBJSI441Bmlhv10iPA84khJNJEgf7kon8=; b=ujE91M0oCSG/hcaApWPMzPKnPTtVCS5Tekhc8j3UBCztkN3t3c6WCMmlTM8kR80UpB 6EQoTaVekFGiNTa3Z6K6btbzzsA6XGTbRJ8g5Eg5ZSVpDxOHqaX3p7MhwuCB88VFglA/ fcSgMlAIIzoN3LgB6498PHpKRM7JYy5qxE601axIwHBSCkiMrpA2zkZQLqIKfUFfDzzR MZg825/S0COTs5dARA5SLCI990tzzCbCxTAhNGpgZR2kTf5T9DRw8LS1XUX0YpaRgsp/ WuQW6gI5WuVXS20bs6vRd7YAOB/hTwiVN02YQbB3wQaBX1IwmC+FJydXgpzopFqLI0h2 ny5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Ex/FlZku"; 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 v10si685007edc.300.2021.06.21.09.40.54; Mon, 21 Jun 2021 09:41:18 -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="Ex/FlZku"; 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 S232994AbhFUQlv (ORCPT + 99 others); Mon, 21 Jun 2021 12:41:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:33540 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232036AbhFUQie (ORCPT ); Mon, 21 Jun 2021 12:38:34 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9199161432; Mon, 21 Jun 2021 16:29:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1624292968; bh=AgmqPuQ4vC79VvfKyzfKHbZ4/sVKbO2NrtcCYZJUiUg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ex/FlZkuqZWWUc6r1NuVNhliWc75rD1MT/ex8pdWU3N9mmDi1Tga7Ebb5zOd3pcBI k6Di/vi6A03n1YTyydjl4gsaKnit30ifZ9B83+ZyhWlNArE7lxTUD42sYCqhd5peke mDwR+tzwH9nrkzH3RZI/FV0Nb/FL5uXmigjw5GMc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe JAILLET , "David S. Miller" , Sasha Levin Subject: [PATCH 5.12 049/178] alx: Fix an error handling path in alx_probe() Date: Mon, 21 Jun 2021 18:14:23 +0200 Message-Id: <20210621154924.024650881@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210621154921.212599475@linuxfoundation.org> References: <20210621154921.212599475@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 33e381448cf7a05d76ac0b47d4a6531ecd0e5c53 ] 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: ab69bde6b2e9 ("alx: add a simple AR816x/AR817x device driver") Signed-off-by: Christophe JAILLET Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/atheros/alx/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/atheros/alx/main.c b/drivers/net/ethernet/atheros/alx/main.c index 9e02f8864593..5e90df42b201 100644 --- a/drivers/net/ethernet/atheros/alx/main.c +++ b/drivers/net/ethernet/atheros/alx/main.c @@ -1849,6 +1849,7 @@ out_free_netdev: free_netdev(netdev); out_pci_release: pci_release_mem_regions(pdev); + pci_disable_pcie_error_reporting(pdev); out_pci_disable: pci_disable_device(pdev); return err; -- 2.30.2