From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 186A2FD0045 for ; Sun, 1 Mar 2026 01:49:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=NFYfhDd+ayTpDy6nItMDakEyu2TYgkAEGdoB7TOSu6w=; b=TPni3+bFZ3m1UKQ5d6fcruRGML yt6rCdIEDKHq/QkvML6jfC98TLY5x4Y3LjLF9Vx1s7zBgO+baW71Nt75p5A7v+btAjIF3Z8YkLlIf swmHeXhppxSBoUY/c22gptaSwU+OStMDw4sHRoQ5ykx6WBGLImrnMQWYfowmt43JbBFYKD7pnvSF9 TLyXSD6JzuZVKsj5EjbPMVmj1qFS1RqrYZJSiQMkzrEIQ8dfOGR7o2dU5j58Dxsx7YDZOks07IpYi yl9MPUjSqjYmcSl0SZFUo+QHATNvtSuLTp+ZxVK0TEYI2uJqz5fLCuKGE7J5nAt8MtlhP20XshIYD GE3qnF4A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vwVvX-0000000AeqK-02yK; Sun, 01 Mar 2026 01:48:59 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vwVvU-0000000Aenu-3C7a; Sun, 01 Mar 2026 01:48:57 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 4D679419D5; Sun, 1 Mar 2026 01:48:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 531B4C19421; Sun, 1 Mar 2026 01:48:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772329736; bh=rxfTxbtwrgdancJY4TBm3Adtj0yAsfVePPXz9bmO6bI=; h=From:To:Cc:Subject:Date:From; b=bOgAv1lhcW1Rv5e4pUerxzX2ZrojjzqZO/UgGfK7aue0p62DbK+vqeTUlIkEZqPNG E3Ogl3xQsz7y5Wu7nNEvsjK2qysRcQpHpCVse2GECZi+at4y4737CB35Nr66zazHD7 udjKE02gHqNKsw0CRVsyaUdqjWRVvD7LdsGklCboIMXPOL7fGltZ12UQ2vAv7xScPh QVFU959pfGMEmGpDzmghQY9WFnsIy29FjBi+YOW9ZhP2nrUJh4rf/xi9ah9zJ0UdS4 rVe8RuAhpxtCPJb4J/8CJqEKfDKvMKXtG3dd+08GS25Xufy18CvLrAfkt+/0hllZtN erhGTZjWNcowA== From: Sasha Levin To: stable@vger.kernel.org, irui.wang@mediatek.com Cc: AngeloGioacchino Del Regno , Nicolas Dufresne , Hans Verkuil , linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: FAILED: Patch "media: mediatek: encoder: Fix uninitialized scalar variable issue" failed to apply to 5.15-stable tree Date: Sat, 28 Feb 2026 20:48:53 -0500 Message-ID: <20260301014854.1713189-1-sashal@kernel.org> X-Mailer: git-send-email 2.51.0 MIME-Version: 1.0 X-Patchwork-Hint: ignore X-stable: review Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260228_174856_842133_70B9B2A4 X-CRM114-Status: GOOD ( 14.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The patch below does not apply to the 5.15-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . Thanks, Sasha ------------------ original commit in Linus's tree ------------------ >From 88e935de7cf8795d7a6a51385db87ecb361a7050 Mon Sep 17 00:00:00 2001 From: Irui Wang Date: Sun, 7 Sep 2025 17:35:56 +0800 Subject: [PATCH] media: mediatek: encoder: Fix uninitialized scalar variable issue UNINIT checker finds some instances of variables that are used without being initialized, for example using the uninitialized value enc_result.is_key_frm can result in unpredictable behavior, so initialize these variables after declaring. Fixes: 4e855a6efa54 ("[media] vcodec: mediatek: Add Mediatek V4L2 Video Encoder Driver") Cc: stable@vger.kernel.org Signed-off-by: Irui Wang Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Nicolas Dufresne Signed-off-by: Hans Verkuil --- .../media/platform/mediatek/vcodec/encoder/mtk_vcodec_enc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/platform/mediatek/vcodec/encoder/mtk_vcodec_enc.c b/drivers/media/platform/mediatek/vcodec/encoder/mtk_vcodec_enc.c index 6faf3f659e751..b3a0a1d8b7a8e 100644 --- a/drivers/media/platform/mediatek/vcodec/encoder/mtk_vcodec_enc.c +++ b/drivers/media/platform/mediatek/vcodec/encoder/mtk_vcodec_enc.c @@ -850,7 +850,7 @@ static void vb2ops_venc_buf_queue(struct vb2_buffer *vb) static int vb2ops_venc_start_streaming(struct vb2_queue *q, unsigned int count) { struct mtk_vcodec_enc_ctx *ctx = vb2_get_drv_priv(q); - struct venc_enc_param param; + struct venc_enc_param param = { }; int ret; int i; @@ -1004,7 +1004,7 @@ static int mtk_venc_encode_header(void *priv) int ret; struct vb2_v4l2_buffer *src_buf, *dst_buf; struct mtk_vcodec_mem bs_buf; - struct venc_done_result enc_result; + struct venc_done_result enc_result = { }; dst_buf = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx); if (!dst_buf) { @@ -1125,7 +1125,7 @@ static void mtk_venc_worker(struct work_struct *work) struct vb2_v4l2_buffer *src_buf, *dst_buf; struct venc_frm_buf frm_buf; struct mtk_vcodec_mem bs_buf; - struct venc_done_result enc_result; + struct venc_done_result enc_result = { }; int ret, i; /* check dst_buf, dst_buf may be removed in device_run -- 2.51.0