[PATCH] qlcnic: Fix an error handling path in 'qlcnic_probe()'

Subsystems: networking drivers, qlogic qlcnic (1/10)gb ethernet driver, the rest

STALE1881d

2 messages, 2 authors, 2021-06-14 · open the first message on its own page

[PATCH] qlcnic: Fix an error handling path in 'qlcnic_probe()'

From: Christophe JAILLET <hidden>
Date: 2021-06-12 12:38:01

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: 451724c821c1 ("qlcnic: aer support")
Signed-off-by: Christophe JAILLET <redacted>
---
 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
index 8966f1bcda77..918220ad0d53 100644
--- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
+++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
@@ -2690,6 +2690,7 @@ qlcnic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
 	kfree(ahw);
 
 err_out_free_res:
+	pci_disable_pcie_error_reporting(pdev);
 	pci_release_regions(pdev);
 
 err_out_disable_pdev:
-- 
2.30.2

Re: [PATCH] qlcnic: Fix an error handling path in 'qlcnic_probe()'

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-06-14 19:20:19

Hello:

This patch was applied to netdev/net.git (refs/heads/master):

On Sat, 12 Jun 2021 14:37:46 +0200 you wrote:
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: 451724c821c1 ("qlcnic: aer support")
Signed-off-by: Christophe JAILLET <redacted>

[...]
Here is the summary with links:
  - qlcnic: Fix an error handling path in 'qlcnic_probe()'
    https://git.kernel.org/netdev/net/c/cb3376604a67

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help