linux-stable/drivers/media/usb
Zhipeng Lu f31c1cc374 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:19:53 -04:00
..
airspy
as102
au0828
b2c2
cx231xx media: cx231xx: fix a memleak in cx231xx_init_isoc 2024-01-25 15:35:34 -08:00
dvb-usb
dvb-usb-v2
em28xx media: em28xx: annotate unchecked call to media_device_register() 2024-03-26 18:19:45 -04:00
go7007 media: go7007: fix a memleak in go7007_load_encoder 2024-03-26 18:19:53 -04:00
gspca
hackrf
hdpvr
msi2500
pvrusb2 media: pvrusb2: fix uaf in pvr2_context_set_notify 2024-03-26 18:19:53 -04:00
pwc
s2255
siano
stk1160 media: stk1160: Fixed high volume of stk1160_dbg messages 2024-02-05 20:14:27 +00:00
ttusb-budget
ttusb-dec
usbtv
uvc media: uvcvideo: Fix power line control for SunplusIT camera 2024-02-05 20:14:27 +00:00
Kconfig
Makefile