Commit 7e40e0bb authored by Ludwig Disterhof's avatar Ludwig Disterhof Committed by Hans Verkuil
Browse files

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: 0e0fe395 ("[media] usbtv: Add support for PAL video source")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarLudwig Disterhof <ludwig@disterhof.eu>
Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
[hverkuil: call vb2_is_busy instead of vb2_is_streaming]
parent 065eb4d2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment