Commit 076be8d9 authored by Tudor Ambarus's avatar Tudor Ambarus Committed by Treehugger Robot
Browse files

FROMLIST: 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>

Link: https://lore.kernel.org/linux-media/20241106121802.2939237-1-tudor.ambarus@linaro.org/


Bug: 373670967
Signed-off-by: default avatarWill McVicker <willmcvicker@google.com>
(cherry picked from https://android-review.googlesource.com/q/commit:a0aa08b527b30697b23345330d43b47ec150d41e)
Merged-In: I34c2cefafc30c13a9a5248bd5f3229b05d27a1f0
Change-Id: I34c2cefafc30c13a9a5248bd5f3229b05d27a1f0
parent 07be6b4d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment