diff options
| author | Tudor Ambarus <[email protected]> | 2024-11-06 12:18:02 +0000 |
|---|---|---|
| committer | Hans Verkuil <[email protected]> | 2024-11-07 11:55:46 +0000 |
| commit | 702a47ce6dde72f6e247b3c3c00a0fc521f9b1c6 (patch) | |
| tree | 6306e4c5aa4148ecc95397522378a1337a76c2ed /drivers/usb/cdns3/cdns3-pci-wrap.c | |
| parent | media: dvbdev: fix the logic when DVB_DYNAMIC_MINORS is not set (diff) | |
| download | kernel-702a47ce6dde72f6e247b3c3c00a0fc521f9b1c6.tar.gz kernel-702a47ce6dde72f6e247b3c3c00a0fc521f9b1c6.zip | |
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: [email protected]
Fixes: 95af7c00f35b ("media: videobuf2-core: release all planes first in __prepare_dmabuf()")
Signed-off-by: Tudor Ambarus <[email protected]>
Tested-by: Will McVicker <[email protected]>
Acked-by: Tomasz Figa <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-pci-wrap.c')
0 files changed, 0 insertions, 0 deletions
