Christophe JAILLET bca718988b PCI: v3-semi: Fix a memory leak in v3_pci_probe() error handling paths
If we fails somewhere in 'v3_pci_probe()', we need to free 'host'.

Use the managed version of 'pci_alloc_host_bridge()' to do that easily.
The use of managed resources is already widely used in this driver.

Link: https://lore.kernel.org/r/20200418081637.1585-1-christophe.jaillet@wanadoo.fr
Fixes: 68a15eb7bd0c ("PCI: v3-semi: Add V3 Semiconductor PCI host driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
[lorenzo.pieralisi@arm.com: commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
2020-05-05 12:00:05 +01:00
..
2020-04-05 11:12:59 -07:00
2020-04-03 14:25:02 -07:00
2019-11-28 08:54:55 -06:00
2019-07-09 07:24:53 -05:00
2020-04-02 14:26:38 -05:00
2020-04-02 14:26:38 -05:00
2020-04-03 14:25:02 -07:00
2020-04-02 14:26:32 -05:00
2020-04-02 14:26:32 -05:00
2020-04-02 14:26:45 -05:00
2020-01-29 17:00:02 -06:00
2020-03-10 14:05:33 -05:00
2019-09-23 16:10:31 -05:00
2019-05-13 18:34:46 -05:00