[PATCH -next] drivers: net: hippi: Add missing pci_disable_device() in rr_init_one()

ruanjinjie posted 1 patch 4 days, 18 hours ago
drivers/net/hippi/rrunner.c | 1 +
1 file changed, 1 insertion(+)
[PATCH -next] drivers: net: hippi: Add missing pci_disable_device() in rr_init_one()
Posted by ruanjinjie 4 days, 18 hours ago
Add missing pci_disable_device() if rr_init_one() fails

Signed-off-by: ruanjinjie <ruanjinjie@huawei.com>
---
 drivers/net/hippi/rrunner.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/hippi/rrunner.c b/drivers/net/hippi/rrunner.c
index 74e845fa2e07..aa8f828a0ae7 100644
--- a/drivers/net/hippi/rrunner.c
+++ b/drivers/net/hippi/rrunner.c
@@ -213,6 +213,7 @@ static int rr_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
 		pci_iounmap(pdev, rrpriv->regs);
 	if (pdev)
 		pci_release_regions(pdev);
+	pci_disable_device(pdev);
  out2:
 	free_netdev(dev);
  out3:
-- 
2.25.1
Re: [PATCH -next] drivers: net: hippi: Add missing pci_disable_device() in rr_init_one()
Posted by patchwork-bot+netdevbpf@kernel.org 1 day, 7 hours ago
Hello:

This patch was applied to netdev/net.git (master)
by Jakub Kicinski <kuba@kernel.org>:

On Fri, 23 Sep 2022 17:43:20 +0800 you wrote:
> Add missing pci_disable_device() if rr_init_one() fails
> 
> Signed-off-by: ruanjinjie <ruanjinjie@huawei.com>
> ---
>  drivers/net/hippi/rrunner.c | 1 +
>  1 file changed, 1 insertion(+)

Here is the summary with links:
  - [-next] drivers: net: hippi: Add missing pci_disable_device() in rr_init_one()
    https://git.kernel.org/netdev/net/c/0dc383796f9c

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