diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2022-09-18 09:27:33 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-09-22 17:54:35 +0300 |
commit | 62e5d00684ef81b4be35d23e54eec92ee38db7b8 (patch) | |
tree | 7a8cbfef7667fb94b3da61253e49ff06e50b0a51 /Documentation/userspace-api | |
parent | c8b4747569eba7e5f4835e027d294486534ed0d3 (diff) | |
download | linux-62e5d00684ef81b4be35d23e54eec92ee38db7b8.tar.xz |
misc: microchip: pci1xxxx: Fix a memory leak in the error handling of gp_aux_bus_probe()
'aux_bus' is freed in the remove function but not in the error handling
path of the probe.
Use devm_kzalloc() to simplify the remove function and fix the leak in the
probe.
Fixes: 393fc2f5948f ("misc: microchip: pci1xxxx: load auxiliary bus driver for the PIO function in the multi-function endpoint of pci1xxxx device.")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/17e19926669a1654e5f2495bf3b289581183d02e.1663482259.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/userspace-api')
0 files changed, 0 insertions, 0 deletions