Skip to content

Fix .buf_prepare

Andrzej Pietrasiewicz linux-arm-kernel linux-media linux-rockchip 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesNew
  2. v11 patch 2 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3media: rkvdec: Fix .buf_preparedrivers/staging/media/rkvdec/rkvdec.c+9 -10 replies
2/3media: hantro: Fix .buf_preparedrivers/staging/media/hantro/hantro_v4l2.c+8 -10 replies
3/3media: cedrus: Fix .buf_preparedrivers/staging/media/sunxi/cedrus/cedrus_video.c+7 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCHv2 0/3] Fix .buf_prepare

Drivers should only set the payload on .buf_prepare if the buffer is CAPTURE type. If an OUTPUT buffer has a zero bytesused set by userspace then v4l2-core will set it to buffer length.

If we overwrite bytesused for OUTPUT buffers, too, then vb2_get_plane_payload() will return incorrect value which might be then written to hw registers by the driver.

Andrzej Pietrasiewicz (2):
media: hantro: Fix .buf_prepare
media: cedrus: Fix .buf_prepare

Ezequiel Garcia (1):
media: rkvdec: Fix .buf_prepare

 drivers/staging/media/hantro/hantro_v4l2.c        |  9 ++++++++-
 drivers/staging/media/rkvdec/rkvdec.c             | 10 +++++++++-
 drivers/staging/media/sunxi/cedrus/cedrus_video.c |  8 +++++++-
 3 files changed, 24 insertions(+), 3 deletions(-)

base-commit: 0b276e470a4d43e1365d3eb53c608a3d208cabd4

Signature · 1 line
2.17.1