1
linux/drivers/media/common
Tudor Ambarus 702a47ce6d 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: 95af7c00f3 ("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>
2024-11-07 12:55:46 +01:00
..
b2c2
saa7146 media: common: saa7146: Use min macro 2024-05-03 11:11:57 +01:00
siano media: siano: Remove unused declarations 2024-08-31 09:40:43 +02:00
v4l2-tpg media: v4l2-tpg: prevent the risk of a division by zero 2024-10-18 10:43:03 +02:00
videobuf2 media: videobuf2-core: copy vb planes unconditionally 2024-11-07 12:55:46 +01:00
cx2341x.c
cypress_firmware.c
cypress_firmware.h
Kconfig
Makefile
ttpci-eeprom.c
ttpci-eeprom.h
tveeprom.c
uvc.c usb: uvc: add missing MODULE_DESCRIPTION() macro 2024-06-29 12:20:05 +02:00