linux-stable/drivers
Zhipeng Lu da10f6b791 wifi: libertas: fix some memleaks in lbs_allocate_cmd_buffer()
[ Upstream commit 5f0e4aede0 ]

In the for statement of lbs_allocate_cmd_buffer(), if the allocation of
cmdarray[i].cmdbuf fails, both cmdarray and cmdarray[i].cmdbuf needs to
be freed. Otherwise, there will be memleaks in lbs_allocate_cmd_buffer().

Fixes: 876c9d3aeb ("[PATCH] Marvell Libertas 8388 802.11b/g USB driver")
Signed-off-by: Zhipeng Lu <alexious@zju.edu.cn>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240126075336.2825608-1-alexious@zju.edu.cn
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-26 18:19:26 -04:00
..
accel
accessibility
acpi
amba
android
ata
atm
auxdisplay
base
bcma
block aoe: fix the potential use-after-free problem in aoecmd_cfg_pkts 2024-03-26 18:19:19 -04:00
bluetooth
bus
cache
cdrom
cdx
char
clk
clocksource
comedi
connector
counter
cpufreq cpufreq: mediatek-hw: Don't error out if supply is not found 2024-03-26 18:19:23 -04:00
cpuidle
crypto
cxl
dax
dca
devfreq
dio
dma
dma-buf
edac
eisa
extcon
firewire firewire: core: use long bus reset on gap count error 2024-03-26 18:19:14 -04:00
firmware
fpga
fsi
gnss
gpio gpio: vf610: allow disabling the vf610 driver 2024-03-26 18:19:26 -04:00
gpu drm/amdgpu: Enable gpu reset for S3 abort cases on Raven series 2024-03-26 18:19:14 -04:00
greybus
hid
hsi
hte
hv
hwmon
hwspinlock
hwtracing
i2c
i3c
idle
iio
infiniband
input Input: gpio_keys_polled - suppress deferred probe error for gpio 2024-03-26 18:19:15 -04:00
interconnect
iommu
ipack
irqchip
isdn
leds
macintosh
mailbox
mcb
md md: Don't clear MD_CLOSING when the raid is about to stop 2024-03-26 18:19:17 -04:00
media
memory
memstick
message
mfd
misc
mmc
most
mtd
mux
net wifi: libertas: fix some memleaks in lbs_allocate_cmd_buffer() 2024-03-26 18:19:26 -04:00
nfc
ntb
nubus
nvdimm
nvme
nvmem
of
opp
parisc
parport
pci
pcmcia
peci
perf perf: RISCV: Fix panic on pmu overflow handler 2024-03-26 18:19:14 -04:00
phy
pinctrl
platform
pmdomain pmdomain: qcom: rpmhpd: Drop SA8540P gfx.lvl 2024-03-26 18:19:23 -04:00
pnp
power
powercap
pps
ps3
ptp
pwm pwm: atmel-hlcdc: Fix clock imbalance related to suspend support 2024-03-26 18:19:26 -04:00
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc rtc: test: Fix invalid format specifier. 2024-03-26 18:19:18 -04:00
s390 s390/dasd: fix double module refcount decrement 2024-03-26 18:19:17 -04:00
sbus
scsi
sh
siox
slimbus
soc soc: qcom: socinfo: rename PM2250 to PM4125 2024-03-26 18:19:23 -04:00
soundwire
spi
spmi
ssb
staging
target
tc
tee
thermal
thunderbolt
tty
ufs
uio
usb
vdpa
vfio
vhost
video
virt
virtio
vlynq
w1
watchdog
xen
zorro
Kconfig
Makefile