* [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
* Re: [PATCH] net: txgbe: Fix an error handling path in txgbe_probe()
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>
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-08-01 19:30 UTC (permalink / raw)
To: Christophe JAILLET
Cc: jiawenwu, davem, edumazet, kuba, pabeni, linux-kernel,
kernel-janitors, netdev
Hello:
This patch was applied to netdev/net-next.git (master)
by Jakub Kicinski <kuba@kernel.org>:
On Sun, 31 Jul 2022 18:34:15 +0200 you wrote:
> 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>
>
> [...]
Here is the summary with links:
- net: txgbe: Fix an error handling path in txgbe_probe()
https://git.kernel.org/netdev/net-next/c/2e8f205d910e
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] net: txgbe: Fix an error handling path in txgbe_probe()
[not found] ` <02a101d8a552$0e704650$2b50d2f0$@trustnetic.com>
@ 2022-08-01 19:31 ` Jakub Kicinski
0 siblings, 0 replies; 3+ messages in thread
From: Jakub Kicinski @ 2022-08-01 19:31 UTC (permalink / raw)
To: Jiawen Wu
Cc: 'Christophe JAILLET', 'David S. Miller',
'Eric Dumazet', 'Paolo Abeni',
linux-kernel, kernel-janitors, netdev
On Mon, 1 Aug 2022 10:54:44 +0800 Jiawen Wu wrote:
> On Monday, August 1, 2022 12:34 AM, Christophe wrote:
> > 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.
>
> Thanks Christophe, it's right.
> Reviewed-by: Jiawen Wu <jiawenwu@trustnetic.com>
Your reply did not make it to the list:
https://lore.kernel.org/r/02a101d8a552$0e704650$2b50d2f0$@trustnetic.com+898582B7F010EAA4/
not sure why but I wanted to let you know.
Thanks for reviewing the fix promptly!
^ permalink raw reply [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.