linux/drivers
Zhipeng Lu 5d3c8990e2 media: cx231xx: fix a memleak in cx231xx_init_isoc
The dma_q->p_left_data alloced by kzalloc should be freed in all the
following error handling paths. However, it hasn't been freed in the
allocation error paths of dev->video_mode.isoc_ctl.urb and
dev->video_mode.isoc_ctl.transfer_buffer.

On the other hand, the dma_q->p_left_data did be freed in the
error-handling paths after that of dev->video_mode.isoc_ctl.urb and
dev->video_mode.isoc_ctl.transfer_buffer, by calling
cx231xx_uninit_isoc(dev). So the same free operation should be done in
error-handling paths of those two allocation.

Fixes: 64fbf44455 ("[media] cx231xx: Added support for Carraera, Shelby, RDx_253S and VIDEO_GRABBER")
Signed-off-by: Zhipeng Lu <alexious@zju.edu.cn>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2023-12-07 08:31:15 +01:00
..
accel
accessibility
acpi ACPI fixes for 6.7-rc4 2023-12-02 08:52:20 +09:00
amba
android
ata SCSI fixes on 20231130 2023-12-02 06:27:20 +09:00
atm
auxdisplay
base device property: Add fwnode_name_eq() 2023-12-04 10:37:46 +01:00
bcma
block
bluetooth
bus
cache
cdrom
cdx
char
clk
clocksource
comedi
connector
counter
cpufreq cpufreq/amd-pstate: Only print supported EPP values for performance governor 2023-11-29 22:04:15 +01:00
cpuidle
crypto
cxl
dax
dca
devfreq
dio
dma
dma-buf dma-buf: fix check in dma_resv_add_fence 2023-11-27 20:00:47 +01:00
dpll
edac
eisa
extcon
firewire firewire fixes for 6.7-rc4 2023-12-03 09:03:07 +09:00
firmware efi/unaccepted: Fix off-by-one when checking for overlapping ranges 2023-11-28 12:49:21 +01:00
fpga
fsi
gnss
gpio
gpu amd-drm-fixes-6.7-2023-11-30: 2023-12-01 13:57:11 +10:00
greybus
hid for-linus-2023112301 2023-11-23 17:31:53 -08:00
hsi
hte
hv
hwmon
hwspinlock
hwtracing
i2c
i3c
idle
iio
infiniband
input media: touchscreen: sur40: Stop direct calls to queue num_buffers field 2023-11-23 12:32:58 +01:00
interconnect
iommu iommu: Fix printk arg in of_iommu_get_resv_regions() 2023-12-01 10:13:49 +01:00
ipack
irqchip
isdn
leds leds: class: Don't expose color sysfs entry 2023-11-22 11:46:03 +00:00
macintosh
mailbox
mcb
md block-6.7-2023-12-01 2023-12-02 06:39:30 +09:00
media media: cx231xx: fix a memleak in cx231xx_init_isoc 2023-12-07 08:31:15 +01:00
memory
memstick
message
mfd
misc
mmc mmc: sdhci-sprd: Fix vqmmc not shutting down after the card was pulled 2023-11-23 18:04:17 +01:00
most
mtd
mux
net net: ravb: Keep reverse order of operations in ravb_remove() 2023-11-30 10:59:07 +01:00
nfc nfc: virtual_ncidev: Add variable to check if ndev is running 2023-11-22 10:55:48 +00:00
ntb
nubus
nvdimm
nvme nvme-core: check for too small lba shift 2023-12-01 07:49:50 -08:00
nvmem
of
opp
parisc
parport
pci
pcmcia
peci
perf
phy
pinctrl pinctrl: realtek: Fix logical error when finding descriptor 2023-11-24 10:39:20 +01:00
platform
pmdomain Power management fixes for 6.7-rc4 2023-12-02 09:01:00 +09:00
pnp
power
powercap powercap: DTPM: Fix unneeded conversions to micro-Watts 2023-11-28 15:15:14 +01:00
pps
ps3
ptp
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc
s390 block-6.7-2023-11-23 2023-11-23 17:40:15 -08:00
sbus
scsi scsi: sd: Fix system start for ATA devices 2023-11-24 20:44:21 -05:00
sh
siox
slimbus
soc
soundwire
spi
spmi
ssb
staging staging: media: VIDEO_STARFIVE_CAMSS should depend on ARCH_STARFIVE 2023-12-07 08:31:15 +01:00
target
tc
tee
thermal
thunderbolt
tty
ufs scsi: ufs: core: Clear cmd if abort succeeds in MCQ mode 2023-11-24 20:35:24 -05:00
uio
usb USB-serial fixes for 6.7-rc3 2023-11-24 16:30:38 +00:00
vdpa
vfio vfio/pds: Fix possible sleep while in atomic context 2023-11-27 09:29:03 -07:00
vhost
video
virt
virtio
w1
watchdog
xen xen/events: fix error code in xen_bind_pirq_msi_to_irq() 2023-11-28 12:48:27 +01:00
zorro
Kconfig
Makefile