Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3923184pxj; Mon, 21 Jun 2021 09:27:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBe1yU9Jdi37gqqCm1xYCrypkSHkZenpF+wknnlgF0oQ561sSYGIzW5vA5L858VPz3EQ1a X-Received: by 2002:aa7:c301:: with SMTP id l1mr6361873edq.215.1624292846767; Mon, 21 Jun 2021 09:27:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624292846; cv=none; d=google.com; s=arc-20160816; b=EgavxWiyvDKsiZL2KfNIlvgKOxkdkaEpikBnkvc0YAEf0hib6B9vlgb/HSn8muTFlf wjuJoGSXMKYQNzYlqt/0VvXFXDDJ2vNsV5kko68eZHQS4P3uOWhE6OrcRn2ox4G24Wn4 gSWK/zO0/Ds6t1kzolKieMtGHzZdxP+dNFQeJC1roNoPwoAw3Vnw2mMXdYb7aEui5qyK 3GrPag8L5rDiK+hw52LFJJi5Qc7LsM8FCKNCZ4O8qG4vRvWYGz45katOcPEsg4S/I8pP H6dBvqh8z40nrfQOnhtzA9wFf8VEHmTT7F3XA37Moxv3ph6vT4+Kek8Y4DelRKS4STFw 2iFw== 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=FJhuc7BbS6E53gHJWY/rzBvtCNz6enR2aipJZ+rJb4qnhWN2Gz2OTH4lroJ615J9sD uPUos5tN4MNocRUm/j1BTNsae7VXg6Emx5VM3OhwLAT32zeGZeP7TFv7ltb2UuXLB6m3 8+5s/LwjAZbSdXnrroRVQdYR5ZGDpLYwUEeFhAKLX56tajuoQaJCF5Kfg+oMpxrqIadG SFdUZwAf/TUK4JM4RIzhDbBnIHi3jEfZRYtLjh8z7r7plCXJfJgPQkzc8xObz+SULPh5 GNTy8iVpkWedT6TSGUUi+zgUPu9+v5zJeMui62RllG0qiyOTj7Lp70pbNb+hvCckhKNa a3MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QmTjcrTg; 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 11si10814585ejn.267.2021.06.21.09.27.04; Mon, 21 Jun 2021 09:27:26 -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=QmTjcrTg; 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 S232147AbhFUQ2T (ORCPT + 99 others); Mon, 21 Jun 2021 12:28:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:48950 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232093AbhFUQ0k (ORCPT ); Mon, 21 Jun 2021 12:26:40 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 54017613C8; Mon, 21 Jun 2021 16:22:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1624292550; bh=AgmqPuQ4vC79VvfKyzfKHbZ4/sVKbO2NrtcCYZJUiUg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QmTjcrTg6xwPUQSbvQQqeN36Lrj7E+OGxGsAi0+aeyhN+m5nuTewh6Tz1+GhzwXJP PD5razgRkc0otRGtAQtX1r6WngLqd1axCBJeSpxdkXhhAJBxZ/axllZCpQimSHU/xF 3xyQIdZlOQHLxgoHpmC5j18MEBLvlzSSJgohVlnk= 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.10 040/146] alx: Fix an error handling path in alx_probe() Date: Mon, 21 Jun 2021 18:14:30 +0200 Message-Id: <20210621154912.653303787@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210621154911.244649123@linuxfoundation.org> References: <20210621154911.244649123@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