linux-stable/drivers/misc
Yongzhi Liu f536714292 misc: microchip: pci1xxxx: Fix a memory leak in the error handling of gp_aux_bus_probe()
[ Upstream commit 77427e3d5c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-06-21 14:40:39 +02:00
..
altera-stapl
bcm-vk tty: bcm: convert to u8 and size_t 2023-12-08 12:02:37 +01:00
c2port
cardreader misc: rtsx: Fix rts5264 driver status incorrect when card removed 2024-04-11 15:15:39 +02:00
cb710
cxl cxl: Convert to platform remove callback returning void 2024-03-05 14:28:51 +00:00
echo
eeprom eeprom: at24: fix memory corruption race condition 2024-04-23 10:07:48 +02:00
genwqe mm, treewide: rename MAX_ORDER to MAX_PAGE_ORDER 2024-01-08 15:27:15 -08:00
ibmasm
lis3lv02d misc: lis3lv02d_i2c: Fix regulators getting en-/dis-abled twice on suspend/resume 2024-03-04 07:59:43 +01:00
lkdtm lkdtm: Disable CFI checking for perms functions 2024-05-30 09:44:09 +02:00
mchp_pci1xxxx misc: microchip: pci1xxxx: Fix a memory leak in the error handling of gp_aux_bus_probe() 2024-06-21 14:40:39 +02:00
mei mei: vsc: Fix wrong invocation of ACPI SID method 2024-06-21 14:40:39 +02:00
ocxl powerpc updates for 6.8 2024-01-08 16:22:47 -08:00
pvpanic misc/pvpanic-pci: register attributes via pci_driver 2024-04-29 11:18:28 +02:00
sgi-gru mm/treewide: replace pmd_large() with pmd_leaf() 2024-03-06 13:04:19 -08:00
sgi-xp
ti-st misc: ti-st: st_kim: Convert to platform remove callback returning void 2024-03-05 14:28:52 +00:00
uacce
vmw_vmci vmci: prevent speculation leaks by sanitizing event in event_deliver() 2024-06-21 14:40:33 +02:00
ad525x_dpot-i2c.c
ad525x_dpot-spi.c
ad525x_dpot.c
ad525x_dpot.h
apds990x.c
apds9802als.c
atmel-ssc.c misc: atmel-ssc: Convert to platform remove callback returning void 2024-03-05 14:28:51 +00:00
bh1770glc.c
cs5535-mfgpt.c
ds1682.c
dummy-irq.c
dw-xdata-pcie.c dw-xdata: Remove usage of the deprecated ida_simple_*() API 2023-12-31 11:09:26 +00:00
enclosure.c
fastrpc.c Char/Misc and other driver subsystem updates for 6.9-rc1 2024-03-21 13:21:31 -07:00
gehc-achc.c misc: gehc-achc: Follow renaming of SPI "master" to "controller" 2024-02-08 11:54:43 +00:00
hi6421v600-irq.c misc: hi6421-spmi-pmic: Remove unused of_gpio.h 2024-03-05 14:28:41 +00:00
hisi_hikey_usb.c misc: hisi_hikey_usb: Convert to platform remove callback returning void 2024-03-05 14:28:52 +00:00
hmc6352.c
hpilo.c misc: hpilo: rename device creation loop variable 2024-01-30 16:19:43 -08:00
hpilo.h
ibmvmc.c Char/Misc and other driver changes for 6.7-rc1 2023-11-03 14:51:08 -10:00
ibmvmc.h
ics932s401.c
isl29003.c
isl29020.c
Kconfig misc: nsm: remove selecting the non-existing config CBOR 2023-12-15 17:07:41 +01:00
kgdbts.c
lattice-ecp3-config.c
Makefile misc: Add Nitro Secure Module driver 2023-11-28 19:05:16 +00:00
nsm.c misc: Add Nitro Secure Module driver 2023-11-28 19:05:16 +00:00
open-dice.c misc: open-dice: Convert to platform remove callback returning void 2024-03-05 14:28:52 +00:00
pch_phub.c
pci_endpoint_test.c Merge branch 'pci/misc' 2024-01-15 12:10:41 -06:00
phantom.c
qcom-coincell.c
smpro-errmon.c
smpro-misc.c
sram-exec.c
sram.c misc: sram: Convert to platform remove callback returning void 2024-03-05 14:28:52 +00:00
sram.h
tifm_7xx1.c
tifm_core.c tifm: make tifm_adapter_class constant 2024-03-07 20:37:05 +00:00
tps6594-esm.c
tps6594-pfsm.c
tsl2550.c
vcpu_stall_detector.c misc: vcpu_stall_detector: Convert to platform remove callback returning void 2024-03-05 14:28:52 +00:00
vmw_balloon.c
xilinx_sdfec.c misc: xilinx_sdfec: Convert to platform remove callback returning void 2024-03-05 14:28:52 +00:00
xilinx_tmr_inject.c misc: xilinx_tmr_inject: Convert to platform remove callback returning void 2024-03-05 14:28:53 +00:00
xilinx_tmr_manager.c