[ Sasha's backport helper bot ]
Hi,
The upstream commit SHA1 provided is correct: b113bc7c0e83b32f4dd2d291a2b6c4803e0a2c44
WARNING: Author mismatch between patch and upstream commit: Backport author: bin.lan.cn@windriver.com Commit author: Yunfei Dongyunfei.dong@mediatek.com
Status in newer kernel trees: 6.13.y | Present (exact SHA1) 6.12.y | Present (exact SHA1) 6.6.y | Present (different SHA1: dbe5b7373801)
Note: The patch differs from the upstream commit: --- 1: b113bc7c0e83b ! 1: 7220bc28bdb34 media: mediatek: vcodec: Fix VP8 stateless decoder smatch warning @@ Metadata ## Commit message ## media: mediatek: vcodec: Fix VP8 stateless decoder smatch warning
+ [ Upstream commit b113bc7c0e83b32f4dd2d291a2b6c4803e0a2c44 ] + Fix a smatch static checker warning on vdec_vp8_req_if.c. Which leads to a kernel crash when fb is NULL.
@@ Commit message 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
- ## drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp8_req_if.c ## -@@ drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp8_req_if.c: static int vdec_vp8_slice_decode(void *h_vdec, struct mtk_vcodec_mem *bs, + ## drivers/media/platform/mediatek/vcodec/vdec/vdec_vp8_req_if.c ## +@@ drivers/media/platform/mediatek/vcodec/vdec/vdec_vp8_req_if.c: static int vdec_vp8_slice_decode(void *h_vdec, struct mtk_vcodec_mem *bs, src_buf_info = container_of(bs, struct mtk_video_dec_buf, bs_buffer);
fb = inst->ctx->dev->vdec_pdata->get_cap_buffer(inst->ctx); - dst_buf_info = container_of(fb, struct mtk_video_dec_buf, frame_buffer); + if (!fb) { -+ mtk_vdec_err(inst->ctx, "fb buffer is NULL"); ++ mtk_vcodec_err(inst, "fb buffer is NULL"); + return -ENOMEM; + }
---
Results of testing on various branches:
| Branch | Patch Apply | Build Test | |---------------------------|-------------|------------| | stable/linux-6.1.y | Success | Success |