linux/drivers/misc/mchp_pci1xxxx
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: 393fc2f594 ("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
..
Kconfig misc: microchip: pci1xxxx: Add support to read and write into PCI1XXXX OTP via NVMEM sysfs 2023-08-04 15:36:43 +02:00
Makefile misc: microchip: pci1xxxx: Add support to read and write into PCI1XXXX OTP via NVMEM sysfs 2023-08-04 15:36:43 +02:00
mchp_pci1xxxx_gp.c misc: microchip: pci1xxxx: Fix a memory leak in the error handling of gp_aux_bus_probe() 2024-06-04 18:08:39 +02:00
mchp_pci1xxxx_gp.h
mchp_pci1xxxx_gpio.c misc: microchip: pci1xxxx: Convert to immutable irqchip 2023-03-09 18:07:29 +01:00
mchp_pci1xxxx_otpe2p.c misc: microchip: pci1xxxx: Fix some NULL vs IS_ERR() bugs 2023-08-12 12:58:56 +02:00