diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2020-06-04 12:59:19 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2020-06-04 12:59:19 -0500 |
commit | 5a881eb3d138bd1408ea22d2c2917a935b2a1ea9 (patch) | |
tree | 3b947e4096275c69cc2931925fc73d116679674d /drivers/pci | |
parent | 62e8a5ad47323d21c4364e0c2f7852f9a9fef036 (diff) | |
parent | bca718988b9008d0d5f504e2d318178fc84958c1 (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.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; |