summaryrefslogtreecommitdiff
path: root/drivers/pci
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
parent62e8a5ad47323d21c4364e0c2f7852f9a9fef036 (diff)
parentbca718988b9008d0d5f504e2d318178fc84958c1 (diff)
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')
-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;