aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2020-06-04 12:59:19 -0500
committerBjorn Helgaas <bhelgaas@google.com>2020-06-04 12:59:19 -0500
commit5a881eb3d138bd1408ea22d2c2917a935b2a1ea9 (patch)
tree3b947e4096275c69cc2931925fc73d116679674d /drivers/pci/controller
parentMerge branch 'remotes/lorenzo/pci/tegra' (diff)
parentPCI: v3-semi: Fix a memory leak in v3_pci_probe() error handling paths (diff)
downloadlinux-dev-5a881eb3d138bd1408ea22d2c2917a935b2a1ea9.tar.xz
linux-dev-5a881eb3d138bd1408ea22d2c2917a935b2a1ea9.zip
Merge branch 'remotes/lorenzo/pci/v3-semi'
- Fix memory leak in probe error paths (Christophe JAILLET) * remotes/lorenzo/pci/v3-semi: PCI: v3-semi: Fix a memory leak in v3_pci_probe() error handling paths
Diffstat (limited to 'drivers/pci/controller')
-rw-r--r--drivers/pci/controller/pci-v3-semi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/controller/pci-v3-semi.c b/drivers/pci/controller/pci-v3-semi.c
index a5bf945d2eda..3681e5af3878 100644
--- a/drivers/pci/controller/pci-v3-semi.c
+++ b/drivers/pci/controller/pci-v3-semi.c
@@ -720,7 +720,7 @@ static int v3_pci_probe(struct platform_device *pdev)
int irq;
int ret;
- host = pci_alloc_host_bridge(sizeof(*v3));
+ host = devm_pci_alloc_host_bridge(dev, sizeof(*v3));
if (!host)
return -ENOMEM;