linux-stable/drivers
Yongzhi Liu 1efe551982 misc: microchip: pci1xxxx: fix double free in the error handling of gp_aux_bus_probe()
commit 086c6cbcc5 upstream.

When auxiliary_device_add() returns error and then calls
auxiliary_device_uninit(), callback function
gp_auxiliary_device_release() calls ida_free() and
kfree(aux_device_wrapper) to free memory. We should't
call them again in the error handling path.

Fix this by skipping the redundant cleanup functions.

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>
Link: https://lore.kernel.org/r/20240523121434.21855-3-hyperlyzcs@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-06-21 14:40:26 +02:00
..
accel
accessibility
acpi
amba
android
ata ata: libata-scsi: Set the RMB bit only for removable media devices 2024-06-21 14:40:13 +02:00
atm
auxdisplay
base
bcma
block
bluetooth
bus
cache
cdrom
cdx
char tpm_tis: Do *not* flush uninitialized work 2024-06-16 13:51:06 +02:00
clk clk: sifive: Do not register clkdevs for PRCI clocks 2024-06-21 14:40:17 +02:00
clocksource
comedi
connector
counter
cpufreq cpufreq: amd-pstate: remove global header file 2024-06-21 14:40:00 +02:00
cpuidle
crypto
cxl cxl/region: Fix memregion leaks in devm_cxl_add_region() 2024-06-21 14:40:15 +02:00
dax
dca
devfreq
dio
dma
dma-buf
dpll
edac EDAC/igen6: Convert PCIBIOS_* return codes to errnos 2024-06-16 13:51:13 +02:00
eisa
extcon
firewire
firmware
fpga
fsi
gnss
gpio gpio: tqmx86: fix broken IRQ_TYPE_EDGE_BOTH interrupt type 2024-06-21 14:40:18 +02:00
gpu drm/xe: move disable_c6 call 2024-06-21 14:40:25 +02:00
greybus
hid HID: logitech-dj: Fix memory leak in logi_dj_recv_switch_to_dj_mode() 2024-06-21 14:40:19 +02:00
hsi
hte
hv
hwmon hwmon: (ltc2992) Fix memory leak in ltc2992_parse_dt() 2024-06-16 13:51:12 +02:00
hwspinlock
hwtracing intel_th: pci: Add Meteor Lake-S CPU support 2024-06-16 13:51:07 +02:00
i2c
i3c i3c: master: svc: fix invalidate IBI type and miss call client IBI handler 2024-06-16 13:51:12 +02:00
idle
iio
infiniband
input
interconnect
iommu iommu/amd: Fix sysfs leak in iommu init 2024-06-21 14:40:19 +02:00
ipack
irqchip irqchip/riscv-intc: Prevent memory leak when riscv_intc_init_common() fails 2024-06-16 13:51:09 +02:00
isdn
leds
macintosh
mailbox
mcb
md
media
memory
memstick
message
mfd
misc misc: microchip: pci1xxxx: fix double free in the error handling of gp_aux_bus_probe() 2024-06-21 14:40:26 +02:00
mmc
most
mtd
mux
net bnxt_en: Adjust logging of firmware messages in case of released token in __hwrm_send() 2024-06-21 14:40:26 +02:00
nfc
ntb
nubus
nvdimm
nvme nvmet-passthru: propagate status from id override functions 2024-06-21 14:40:24 +02:00
nvmem
of
opp
parisc
parport
pci
pcmcia
peci
perf
phy
pinctrl
platform platform/x86: dell-smbios: Fix wrong token data in sysfs 2024-06-21 14:40:18 +02:00
pmdomain
pnp
power
powercap
pps
ps3
ptp ptp: Fix error message on failed pin verification 2024-06-21 14:40:07 +02:00
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc
s390 s390/ap: Fix crash in AP internal function modify_bitmap() 2024-06-16 13:51:11 +02:00
sbus
scsi scsi: sd: Use READ(16) when reading block zero on large capacity disks 2024-06-21 14:40:14 +02:00
sh
siox
slimbus
soc
soundwire
spi
spmi
ssb
staging
target
tc
tee
thermal thermal: core: Do not fail cdev registration because of invalid initial state 2024-06-21 14:40:21 +02:00
thunderbolt thunderbolt: debugfs: Fix margin debugfs node creation condition 2024-06-21 14:40:13 +02:00
tty serial: port: Don't block system suspend even if bytes are left to xmit 2024-06-21 14:40:12 +02:00
ufs scsi: ufs: core: Quiesce request queues before checking pending cmds 2024-06-21 14:40:24 +02:00
uio
usb xhci: Apply broken streams quirk to Etron EJ188 xHCI host 2024-06-21 14:40:13 +02:00
vdpa
vfio
vhost
video
virt
virtio
w1
watchdog watchdog: rti_wdt: Set min_hw_heartbeat_ms to accommodate a safety margin 2024-06-16 13:51:08 +02:00
xen
zorro
Kconfig
Makefile