linux-stable/drivers/media/usb
Zhipeng Lu 790fa2c04d media: go7007: fix a memleak in go7007_load_encoder
[ Upstream commit b9b683844b ]

In go7007_load_encoder, bounce(i.e. go->boot_fw), is allocated without
a deallocation thereafter. After the following call chain:

saa7134_go7007_init
  |-> go7007_boot_encoder
        |-> go7007_load_encoder
  |-> kfree(go)

go is freed and thus bounce is leaked.

Fixes: 95ef39403f ("[media] go7007: remember boot firmware")
Signed-off-by: Zhipeng Lu <alexious@zju.edu.cn>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-26 18:21:30 -04:00
..
airspy
as102
au0828
b2c2
cpia2
cx231xx media: cx231xx: fix a memleak in cx231xx_init_isoc 2024-01-25 14:52:42 -08:00
dvb-usb media: af9005: Fix null-ptr-deref in af9005_i2c_xfer 2023-09-23 11:09:58 +02:00
dvb-usb-v2 media: dvb-usb-v2: af9035: fix missing unlock 2023-11-20 11:08:27 +01:00
em28xx media: em28xx: annotate unchecked call to media_device_register() 2024-03-26 18:21:26 -04:00
go7007 media: go7007: fix a memleak in go7007_load_encoder 2024-03-26 18:21:30 -04:00
gspca media: gspca: cpia1: shift-out-of-bounds in set_flicker 2023-11-28 16:56:20 +00:00
hackrf
hdpvr
msi2500
pvrusb2 media: pvrusb2: fix uaf in pvr2_context_set_notify 2024-03-26 18:21:30 -04:00
pwc
s2255
siano drivers: usb: smsusb: fix error handling code in smsusb_init_device 2023-09-19 12:22:43 +02:00
stk1160 media: stk1160: Fixed high volume of stk1160_dbg messages 2024-02-23 08:54:47 +01:00
stkwebcam
tm6000
ttusb-budget
ttusb-dec media: ttusb-dec: fix memory leak in ttusb_dec_exit_dvb() 2023-06-09 10:32:24 +02:00
usbtv
uvc media: uvcvideo: Don't expose unsupported formats to userspace 2023-06-09 10:32:27 +02:00
zr364xx
Kconfig
Makefile