media: mediatek: vcodec: Setting lat buf to lat_list when lat decode error
authorYunfei Dong <yunfei.dong@mediatek.com>
Thu, 17 Nov 2022 09:24:52 +0000 (09:24 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:17 +0000 (13:32 +0100)
commitc703b86a49724bb71962195909473a17b7bebf08
tree12f3cd362bcdf0438540b4d9932f97032c80a2c3
parent43a4ae7b787934499746b3b40b1963ba32781567
media: mediatek: vcodec: Setting lat buf to lat_list when lat decode error

[ Upstream commit 12ac20d60213a439d1552382d04aabb905e0b784 ]

Need to set lat buf to lat_list when lat decode error, or lat buffer will
be lost.

Fixes: 5d418351ca8f ("media: mediatek: vcodec: support stateless VP9 decoding")
Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/platform/mediatek/vcodec/vdec/vdec_vp9_req_lat_if.c