kernel_samsung_a53x/drivers/media/usb
Benjamin Gaignard 085ff6c5fd media: usbtv: Remove useless locks in usbtv_video_free()
[ Upstream commit 65e6a2773d655172143cc0b927cdc89549842895 ]

Remove locks calls in usbtv_video_free() because
are useless and may led to a deadlock as reported here:
https://syzkaller.appspot.com/x/bisect.txt?x=166dc872180000
Also remove usbtv_stop() call since it will be called when
unregistering the device.

Before 'c838530d230b' this issue would only be noticed if you
disconnect while streaming and now it is noticeable even when
disconnecting while not streaming.

Fixes: c838530d230b ("media: media videobuf2: Be more flexible on the number of queue stored buffers")
Fixes: f3d27f34fdd7 ("[media] usbtv: Add driver for Fushicai USBTV007 video frame grabber")

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Tested-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
[hverkuil: fix minor spelling mistake in log message]
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:21:36 +01:00
..
airspy
as102
au0828
b2c2 media: flexcop-usb: fix sanity check of bNumEndpoints 2024-11-19 12:27:06 +01:00
cpia2
cx231xx
dvb-usb media: Revert "media: dvb-usb: Fix unexpected infinite loop in dvb_usb_read_remote_control()" 2024-11-23 23:20:32 +01:00
dvb-usb-v2
em28xx media: em28xx: annotate unchecked call to media_device_register() 2024-11-19 08:44:51 +01:00
go7007 media: go7007: fix a memleak in go7007_load_encoder 2024-11-19 08:44:55 +01:00
gspca
hackrf
hdpvr
msi2500
pvrusb2 media: pvrusb2: fix uaf in pvr2_context_set_notify 2024-11-19 08:44:55 +01:00
pwc
s2255 media: s2255: Use refcount_t instead of atomic_t for num_channels 2024-11-19 14:19:40 +01:00
siano
stk1160 media: stk1160: fix bounds checking in stk1160_copy_video() 2024-11-19 12:27:06 +01:00
stkwebcam
tm6000
ttusb-budget
ttusb-dec
usbtv media: usbtv: Remove useless locks in usbtv_video_free() 2024-11-23 23:21:36 +01:00
uvc media: uvcvideo: Enforce alignment of frame and interval 2024-11-23 23:20:58 +01:00
zr364xx
Kconfig
Makefile