diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2020-06-04 19:59:19 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2020-06-04 19:59:19 +0200 |
commit | 5a881eb3d138bd1408ea22d2c2917a935b2a1ea9 (patch) | |
tree | 3b947e4096275c69cc2931925fc73d116679674d /drivers/pci | |
parent | Merge branch 'remotes/lorenzo/pci/tegra' (diff) | |
parent | PCI: v3-semi: Fix a memory leak in v3_pci_probe() error handling paths (diff) | |
download | linux-5a881eb3d138bd1408ea22d2c2917a935b2a1ea9.tar.xz linux-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')
-rw-r--r-- | drivers/pci/controller/pci-v3-semi.c | 2 |
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; |