Skip to content
Snippets Groups Projects
Commit 702a47ce authored by Tudor Ambarus's avatar Tudor Ambarus Committed by Hans Verkuil
Browse files

media: videobuf2-core: copy vb planes unconditionally


Copy the relevant data from userspace to the vb->planes unconditionally
as it's possible some of the fields may have changed after the buffer
has been validated.

Keep the dma_buf_put(planes[plane].dbuf) calls in the first
`if (!reacquired)` case, in order to be close to the plane validation code
where the buffers were got in the first place.

Cc: stable@vger.kernel.org
Fixes: 95af7c00 ("media: videobuf2-core: release all planes first in __prepare_dmabuf()")
Signed-off-by: default avatarTudor Ambarus <tudor.ambarus@linaro.org>
Tested-by: default avatarWill McVicker <willmcvicker@google.com>
Acked-by: default avatarTomasz Figa <tfiga@chromium.org>
Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
parent a4aebaf6
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment