Patch "ASoC: SOF: mediatek: initialize panic_info to zero" has been added to the 6.0-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    ASoC: SOF: mediatek: initialize panic_info to zero

to the 6.0-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     asoc-sof-mediatek-initialize-panic_info-to-zero.patch
and it can be found in the queue-6.0 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit facbbe742ceacfa420528500ac226f2146149c09
Author: YC Hung <yc.hung@xxxxxxxxxxxx>
Date:   Tue Dec 13 19:56:17 2022 +0800

    ASoC: SOF: mediatek: initialize panic_info to zero
    
    [ Upstream commit 7bd220f2ba9014b78f0304178103393554b8c4fe ]
    
    Coverity spotted that panic_info is not initialized to zero in
    mtk_adsp_dump. Using uninitialized value panic_info.linenum when
    calling snd_sof_get_status. Fix this coverity by initializing
    panic_info struct as zero.
    
    Signed-off-by: YC Hung <yc.hung@xxxxxxxxxxxx>
    Reviewed-by: Curtis Malainey <cujomalainey@xxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20221213115617.25086-1-yc.hung@xxxxxxxxxxxx
    Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/sound/soc/sof/mediatek/mtk-adsp-common.c b/sound/soc/sof/mediatek/mtk-adsp-common.c
index 1e0769c668a7..de8dbe27cd0d 100644
--- a/sound/soc/sof/mediatek/mtk-adsp-common.c
+++ b/sound/soc/sof/mediatek/mtk-adsp-common.c
@@ -60,7 +60,7 @@ void mtk_adsp_dump(struct snd_sof_dev *sdev, u32 flags)
 {
 	char *level = (flags & SOF_DBG_DUMP_OPTIONAL) ? KERN_DEBUG : KERN_ERR;
 	struct sof_ipc_dsp_oops_xtensa xoops;
-	struct sof_ipc_panic_info panic_info;
+	struct sof_ipc_panic_info panic_info = {};
 	u32 stack[MTK_ADSP_STACK_DUMP_SIZE];
 	u32 status;
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux