diff options
| author | Christophe JAILLET <[email protected]> | 2020-04-18 08:16:37 +0000 |
|---|---|---|
| committer | Lorenzo Pieralisi <[email protected]> | 2020-05-05 11:00:05 +0000 |
| commit | bca718988b9008d0d5f504e2d318178fc84958c1 (patch) | |
| tree | 7bb60d15feb12a9f93009048a85aa2d639b2adba /drivers/base/platform.c | |
| parent | Linux 5.7-rc1 (diff) | |
| download | kernel-bca718988b9008d0d5f504e2d318178fc84958c1.tar.gz kernel-bca718988b9008d0d5f504e2d318178fc84958c1.zip | |
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/[email protected]
Fixes: 68a15eb7bd0c ("PCI: v3-semi: Add V3 Semiconductor PCI host driver")
Signed-off-by: Christophe JAILLET <[email protected]>
[[email protected]: commit log]
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Acked-by: Linus Walleij <[email protected]>
Diffstat (limited to 'drivers/base/platform.c')
0 files changed, 0 insertions, 0 deletions
