summaryrefslogtreecommitdiff
path: root/drivers/pci/endpoint/functions/pci-epf-vntb.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2023-05-18 11:49:45 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2023-05-18 11:49:45 +1000
commite5c7b38d88e3a9f41479bae0b2fb941bdd7da50f (patch)
tree85c1833ba3d79cc50a09c3c98a9b553349507ec3 /drivers/pci/endpoint/functions/pci-epf-vntb.c
parent9bdc0fb5e195860cd4b1bd1a2e5371b74040f057 (diff)
parent942cc9ceccb6178b56bf712b94d76190d8759823 (diff)
downloadlinux-next-e5c7b38d88e3a9f41479bae0b2fb941bdd7da50f.tar.gz
Merge branch 'ntb-next' of https://github.com/jonmason/ntb.git
Diffstat (limited to 'drivers/pci/endpoint/functions/pci-epf-vntb.c')
-rw-r--r--drivers/pci/endpoint/functions/pci-epf-vntb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/endpoint/functions/pci-epf-vntb.c b/drivers/pci/endpoint/functions/pci-epf-vntb.c
index b7c7a8af99f4..77306983ac45 100644
--- a/drivers/pci/endpoint/functions/pci-epf-vntb.c
+++ b/drivers/pci/endpoint/functions/pci-epf-vntb.c
@@ -1285,6 +1285,7 @@ static int pci_vntb_probe(struct pci_dev *pdev, const struct pci_device_id *id)
return 0;
err_register_dev:
+ put_device(&ndev->ntb.dev);
return -EINVAL;
}