Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8794485rwb; Tue, 13 Dec 2022 10:28:42 -0800 (PST) X-Google-Smtp-Source: AA0mqf79RvdbIRqS13qFxBCyIvZLFrjQBuT/SL6UB3h44XF+flS4lv2Eu0LtNrmnpgT081NT8XoS X-Received: by 2002:a17:90a:638c:b0:218:8dcb:454c with SMTP id f12-20020a17090a638c00b002188dcb454cmr21976262pjj.2.1670956122449; Tue, 13 Dec 2022 10:28:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670956122; cv=none; d=google.com; s=arc-20160816; b=NQAf8yw2u0LEVK9+e8hMVQ/uOlhNmnqc77FkVwpq7fZQUM8AUsWU939TFHFc3AYXrz APG8QpzGatkyZsbRJ1JM16f8KIT+++LAsZiQina/wf2MqEYoWxrSRM+fBSSzxUTxnfu2 OV+jqPbaUCEVzslfNS90sCCCtN+SfcQcaQARhOd4908NnjtQX/oOxAk6d8dls1AavND0 1LvdKuZJ2BxS0MW1Skc6GCVW9z3PT0XiajjghPE8+fkmtVJje6eHASwlyYQ2et5xzOFD Ap8lsvbA07+YhacPzlljBuhzO6zcyXf4RZHlMzBWuWpvlKlHk3K/CcT4B54Y3xVLzHHv HVFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=bsAx81CS2oGtFlCOIKJ8N6Se9n8UswnoX6gUXWJhq9s=; b=Y8MR5en4dEf6zRRC3GIRzJ0l1mGS/hzlWILozsVjfV8M82TAZ2oX7xwvQU5+XOLOnc 0iloGCiDTuZe5N4fxtrRp7XjYcLLFGnMHiwCflbJUjJl2D45JNoPGBH63UjF6WRCLroS W8K7kLlvxeke3DJ7kggJZPFlLEF2N85pkORX+2XxHS+X9swcza8SySb6s3AEn4Rwjvm6 P+B6x/jk6qz34JTcoV+ZIG3iITHD2WVIDd203HpLFZOcEEuYs3A8M/IVYaEDvhuU/uEb rK/K14SZY7pMW/JAhNm+G7t4qBVPfPGwCZ/6DqsZqbuz8JoYrMDHC8WH2qHl3/7t7Tgz 4Obw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=VuOVc9dM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t184-20020a6381c1000000b00476f2b0b330si12545613pgd.700.2022.12.13.10.28.33; Tue, 13 Dec 2022 10:28:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=VuOVc9dM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236282AbiLMSNt (ORCPT + 72 others); Tue, 13 Dec 2022 13:13:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236538AbiLMSNj (ORCPT ); Tue, 13 Dec 2022 13:13:39 -0500 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94DAC15814 for ; Tue, 13 Dec 2022 10:13:38 -0800 (PST) Received: by mail-pl1-x635.google.com with SMTP id d7so636740pll.9 for ; Tue, 13 Dec 2022 10:13:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=bsAx81CS2oGtFlCOIKJ8N6Se9n8UswnoX6gUXWJhq9s=; b=VuOVc9dMuIMJz0Dd34VYPlU6ugaxmknQDoMrG5R7uQ5/qpQpbyKwiY7mNU+QgDUtCK VkpAdxjZCrFA2AMI7fBHmIIkmi/kUbLQPoxtN0WcjCl9Wu9pcPv2N9pbGogcYhmmgu9x wuB1AkD9GkJYjpTrvyeJmuVJOnt7HPvElLbG7uivUVNghl8B8jEXZeTqTyTxUsFVtTS7 U2qeQkM3IsBjwUJnG2ATPrYF+QYaYNX0X/Kt4O3HyDCyAcRLNQkML35HHbvsC19YHzyq Ue5043VbSlz6zLlvo1tcJHA0EmlHu3Ecg/ObI9fgQ6NOjD18pG5cCS68BdXHOs+DiSuR 0Q4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bsAx81CS2oGtFlCOIKJ8N6Se9n8UswnoX6gUXWJhq9s=; b=bhe5wpq1WUJxJONuD5diJr9bpzTH6u8De7mbXDCchLhQ7GFJzMo1yfL1if3vL+aJ9t ic+ydCyzAgexdbYyJXB0TwW7fSjDhLjAsBLAJrPnrLBogkng/q5OqVrSu+25aO3BtfRo 63+b5gha2MKAbsF0iojv5k5wIak0CuyhPCFj7lDzC0ElMIXE7tvAkzsjcvZdAX9coSB3 2RHrV7edISzxGeki7++UbdNKZ8I9Z1rxqU3jAowgEaqT8XfttC636LccZc2DXYLPAKBp X1/T7gvVx1u74k5e3DKxlUleTKSjOrMdAra8a/gBN6A5z8O8aEG2OfeYYWtjxkXWwyX5 T9gQ== X-Gm-Message-State: ANoB5pk7PskcERrHY3kXkLjbyG7mwlsdG32q6RnR0fexHP3CfeVm9n0B Dq2Eq0a7PzkcUhAe8Q2tp8yt5BpBfPL6jA1hy2YinA== X-Received: by 2002:a17:90a:6708:b0:219:2b00:8d23 with SMTP id n8-20020a17090a670800b002192b008d23mr412904pjj.167.1670955217708; Tue, 13 Dec 2022 10:13:37 -0800 (PST) MIME-Version: 1.0 References: <20221213115617.25086-1-yc.hung@mediatek.com> In-Reply-To: <20221213115617.25086-1-yc.hung@mediatek.com> From: Curtis Malainey Date: Tue, 13 Dec 2022 10:13:26 -0800 Message-ID: Subject: Re: [PATCH] ASoC: SOF: mediatek: initialize panic_info to zero To: YC Hung Cc: Pierre-Louis Bossart , Liam Girdwood , Peter Ujfalusi , Bard Liao , Ranjani Sridharan , Kai Vehmanen , Daniel Baluta , Mark Brown , Jaroslav Kysela , Takashi Iwai , Matthias Brugger , Chao Song , sound-open-firmware@alsa-project.org, alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, chunxu.li@mediatek.com, Trevor Wu , Curtis Malainey Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 13, 2022 at 3:56 AM YC Hung wrote: > > 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 Reviewed-by: Curtis Malainey