Message ID | 20220923094320.3109154-1-ruanjinjie@huawei.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 0dc383796f9c59d7297190aa864b986eaf2f73e6 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [-next] drivers: net: hippi: Add missing pci_disable_device() in rr_init_one() | expand |
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!
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:
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(+)