summaryrefslogtreecommitdiff
path: root/drivers/media/platform
diff options
context:
space:
mode:
authorTudor Ambarus <tudor.ambarus@linaro.org>2024-11-06 12:18:02 +0000
committerHans Verkuil <hverkuil@xs4all.nl>2024-11-07 12:55:46 +0100
commit702a47ce6dde72f6e247b3c3c00a0fc521f9b1c6 (patch)
tree6306e4c5aa4148ecc95397522378a1337a76c2ed /drivers/media/platform
parenta4aebaf6e6efff548b01a3dc49b4b9074751c15b (diff)
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: 95af7c00f35b ("media: videobuf2-core: release all planes first in __prepare_dmabuf()") Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org> Tested-by: Will McVicker <willmcvicker@google.com> Acked-by: Tomasz Figa <tfiga@chromium.org> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'drivers/media/platform')
0 files changed, 0 insertions, 0 deletions