All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net: txgbe: Fix an error handling path in txgbe_probe()
@ 2022-07-31 16:34 Christophe JAILLET
  2022-08-01 19:30 ` patchwork-bot+netdevbpf
       [not found] ` <02a101d8a552$0e704650$2b50d2f0$@trustnetic.com>
  0 siblings, 2 replies; 3+ messages in thread
From: Christophe JAILLET @ 2022-07-31 16:34 UTC (permalink / raw)
  To: Jiawen Wu, David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni
  Cc: linux-kernel, kernel-janitors, Christophe JAILLET, netdev

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>
---
 drivers/net/ethernet/wangxun/txgbe/txgbe_main.c | 1 +
 1 file changed, 1 insertion(+)

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:
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-08-01 19:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-31 16:34 [PATCH] net: txgbe: Fix an error handling path in txgbe_probe() Christophe JAILLET
2022-08-01 19:30 ` patchwork-bot+netdevbpf
     [not found] ` <02a101d8a552$0e704650$2b50d2f0$@trustnetic.com>
2022-08-01 19:31   ` Jakub Kicinski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.