summaryrefslogtreecommitdiffstats
path: root/tools/lib/python/kdoc/parse_data_structs.py
diff options
context:
space:
mode:
authorRenjiang Han <renjiang.han@oss.qualcomm.com>2025-12-11 15:20:39 +0530
committerHans Verkuil <hverkuil+cisco@kernel.org>2026-01-20 13:19:32 +0100
commit93ecd6ee95c38cb533fa25f48d3c1c8cb69f410f (patch)
tree6fa69bcc1806aadae1ba241c5a7e85a1bbcd8f8e /tools/lib/python/kdoc/parse_data_structs.py
parenteb4ee870747c3a77a9c3c84d84efb64bd481013a (diff)
downloadlinux-93ecd6ee95c38cb533fa25f48d3c1c8cb69f410f.tar.gz
linux-93ecd6ee95c38cb533fa25f48d3c1c8cb69f410f.zip
media: venus: vdec: fix error state assignment for zero bytesused
When hfi_session_flush is issued, all queued buffers are returned to the V4L2 driver. Some of these buffers are not processed and have bytesused = 0. Currently, the driver marks such buffers as error even during drain operations, which can incorrectly flag EOS buffers. Only capture buffers with zero payload (and not EOS) should be marked with VB2_BUF_STATE_ERROR. The check is performed inside the non-EOS branch to ensure correct handling. Fixes: 51df3c81ba10b ("media: venus: vdec: Mark flushed buffers with error state") Signed-off-by: Renjiang Han <renjiang.han@oss.qualcomm.com> Reviewed-by: Vikash Garodia <vikash.garodia@oss.qualcomm.com> Cc: stable@vger.kernel.org Signed-off-by: Bryan O'Donoghue <bod@kernel.org> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/parse_data_structs.py')
0 files changed, 0 insertions, 0 deletions