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:
commit
5a881eb3d1
|
@ -720,7 +720,7 @@ static int v3_pci_probe(struct platform_device *pdev)
|
||||||
int irq;
|
int irq;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
host = pci_alloc_host_bridge(sizeof(*v3));
|
host = devm_pci_alloc_host_bridge(dev, sizeof(*v3));
|
||||||
if (!host)
|
if (!host)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue