diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2022-07-31 19:34:15 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-08-01 22:27:12 +0300 |
commit | 2e8f205d910eb1fc59faf24582f3faf774000360 (patch) | |
tree | 3de07c6d11cdcd5963c408c930e11015e82302a8 /drivers | |
parent | 062cf5ebc2e8ca8afb9908072493dea314f62862 (diff) | |
download | linux-2e8f205d910eb1fc59faf24582f3faf774000360.tar.xz |
net: txgbe: Fix an error handling path in txgbe_probe()
A pci_enable_pcie_error_reporting() should be balanced by a corresponding
pci_disable_pcie_error_reporting() call in the error handling path, as
already done in the remove function.
Fixes: 3ce7547e5b71 ("net: txgbe: Add build support for txgbe")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Jiawen Wu <jiawenwu@trustnetic.com>
Link: https://lore.kernel.org/r/082003d00be1f05578c9c6434272ceb314609b8e.1659285240.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/wangxun/txgbe/txgbe_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/wangxun/txgbe/txgbe_main.c b/drivers/net/ethernet/wangxun/txgbe/txgbe_main.c index 55c3c720b377..d3b9f73ecba4 100644 --- a/drivers/net/ethernet/wangxun/txgbe/txgbe_main.c +++ b/drivers/net/ethernet/wangxun/txgbe/txgbe_main.c @@ -123,6 +123,7 @@ static int txgbe_probe(struct pci_dev *pdev, return 0; err_pci_release_regions: + pci_disable_pcie_error_reporting(pdev); pci_release_selected_regions(pdev, pci_select_bars(pdev, IORESOURCE_MEM)); err_pci_disable_dev: |