Re: [PATCH v2 2/9] media: chips-media: wave5: drop the consumed-byte tally on OUTPUT streamoff

From: Nicolas Dufresne

Date: Thu Nov 26 2026 - 19:38:29 EST


Le lundi 09 novembre 2026 à 14:28 +0900, Jackson.lee a écrit :
> From: Jackson Lee <jackson.lee@xxxxxxxxxxxxxxx>
>
> remaining_consumed_bytes is never cleared. On a seek the OUTPUT buffers
> it accounts for are returned with VB2_BUF_STATE_ERROR, but the tally
> survives and is credited to the first buffers queued afterwards, which
> are then completed before the VPU has read them.
>
> Clear it where last_rd_ptr is already being rebased.
>
> Fixes: 9707a6254a8a ("media: chips-media: wave5: Add the v4l2 layer")
> Cc: stable@xxxxxxxxxxxxxxx
> Tested-by: Brandon Brnich <b-brnich@xxxxxx>
> Signed-off-by: Jackson Lee <jackson.lee@xxxxxxxxxxxxxxx>
> Signed-off-by: Nas Chung <nas.chung@xxxxxxxxxxxxxxx>

Reviewed-by: Nicolas Dufresne <nicolas.dufresne@xxxxxxxxxxxxx>

Attachment: signature.asc
Description: This is a digitally signed message part