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
This commit is contained in:
Bjorn Helgaas 2020-06-04 12:59:19 -05:00
commit 5a881eb3d1
1 changed files with 1 additions and 1 deletions

View File

@ -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;