media: mediatek: vcodec: Return NULL if no vdec_fb is found
authorIrui Wang <irui.wang@mediatek.com>
Wed, 5 Jul 2023 09:14:41 +0000 (17:14 +0800)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 25 Jul 2023 07:44:27 +0000 (09:44 +0200)
commitdfa2d6e07432270330ae191f50a0e70636a4cd2b
treebbe9bfa7fc43d5903c6713fc79df9277d3abf808
parent89a4f369b20810a8365f87badf7862c67d344bbe
media: mediatek: vcodec: Return NULL if no vdec_fb is found

"fb_use_list" is used to store used or referenced frame buffers for
vp9 stateful decoder. "NULL" should be returned when getting target
frame buffer failed from "fb_use_list", not a random unexpected one.

Fixes: f77e89854b3e ("[media] vcodec: mediatek: Add Mediatek VP9 Video Decoder Driver")
Signed-off-by: Irui Wang <irui.wang@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/mediatek/vcodec/vdec/vdec_vp9_if.c