]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: mediatek: vcodec: Fix VP8 stateless decoder smatch warning
authorYunfei Dong <yunfei.dong@mediatek.com>
Thu, 13 Jun 2024 09:33:56 +0000 (17:33 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Mar 2025 20:59:02 +0000 (21:59 +0100)
commit4e0713c79cf5d0b549fa855e230ade1ff83c27d7
treeb54ee69cc81f0a2bc034e3d6a9edc2ab03f0216f
parenta12bd675100531f9fb4508fd4430dd1632325a0e
media: mediatek: vcodec: Fix VP8 stateless decoder smatch warning

commit b113bc7c0e83b32f4dd2d291a2b6c4803e0a2c44 upstream.

Fix a smatch static checker warning on vdec_vp8_req_if.c.
Which leads to a kernel crash when fb is NULL.

Fixes: 7a7ae26fd458 ("media: mediatek: vcodec: support stateless VP8 decoding")
Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Bin Lan <bin.lan.cn@windriver.com>
Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/platform/mediatek/vcodec/vdec/vdec_vp8_req_if.c