Yongzhi Liu 77427e3d5c misc: microchip: pci1xxxx: Fix a memory leak in the error handling of gp_aux_bus_probe()
There is a memory leak (forget to free allocated buffers) in a
memory allocation failure path.

Fix it to jump to the correct error handling code.

Fixes: 393fc2f5948f ("misc: microchip: pci1xxxx: load auxiliary bus driver for the PIO function in the multi-function endpoint of pci1xxxx device.")
Signed-off-by: Yongzhi Liu <hyperlyzcs@gmail.com>
Reviewed-by: Kumaravel Thiagarajan <kumaravel.thiagarajan@microchip.com>
Link: https://lore.kernel.org/r/20240523121434.21855-4-hyperlyzcs@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-06-04 18:08:39 +02:00
..
2023-12-08 12:02:37 +01:00
2024-05-08 19:21:51 +01:00
2024-05-18 12:39:20 -07:00
2024-01-08 16:22:47 -08:00
2024-05-08 19:21:51 +01:00
2023-11-01 20:51:41 -10:00
2023-10-27 08:51:00 +02:00
2024-04-11 15:12:13 +02:00
2024-05-22 08:31:17 -04:00
2024-01-15 12:10:41 -06:00
2022-12-15 10:37:26 -08:00