linux-loongson/drivers/media/usb/usbtv
Ludwig Disterhof 7e40e0bb77 media: usbtv: Lock resolution while streaming
When an program is streaming (ffplay) and another program (qv4l2)
changes the TV standard from NTSC to PAL, the kernel crashes due to trying
to copy to unmapped memory.

Changing from NTSC to PAL increases the resolution in the usbtv struct,
but the video plane buffer isn't adjusted, so it overflows.

Fixes: 0e0fe3958f ("[media] usbtv: Add support for PAL video source")
Cc: stable@vger.kernel.org
Signed-off-by: Ludwig Disterhof <ludwig@disterhof.eu>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
[hverkuil: call vb2_is_busy instead of vb2_is_streaming]
2025-06-17 10:35:14 +02:00
..
Kconfig media: Kconfig: cleanup VIDEO_DEV dependencies 2022-03-18 05:58:35 +01:00
Makefile
usbtv-audio.c
usbtv-core.c usbtv: usbtv_set_regs: the pipe is output 2023-04-11 17:10:10 +02:00
usbtv-video.c media: usbtv: Lock resolution while streaming 2025-06-17 10:35:14 +02:00
usbtv.h media: usbtv: Add PAL-Nc standard 2022-06-20 10:30:30 +01:00