Message ID | 20230307040938.7484-1-trevor.wu@mediatek.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2231058wrd; Mon, 6 Mar 2023 20:12:26 -0800 (PST) X-Google-Smtp-Source: AK7set9X1qbbi9/8Svj4Qf1R2chET5p3rzFApg98D5+L+c0Q7QRokYctjGHc+7PzpI5YY4evcNnv X-Received: by 2002:a17:902:bd93:b0:19c:be03:d1a3 with SMTP id q19-20020a170902bd9300b0019cbe03d1a3mr12094428pls.40.1678162345960; Mon, 06 Mar 2023 20:12:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678162345; cv=none; d=google.com; s=arc-20160816; b=AOcyFfKHMvR+VVx6bt5GlKTsP/BhQ6q2JE2Bxsj43tK1X1wirjkBf/IK2G4S7k4U+o T4I9gG1AlkQHU68jc2gCL1X38uYvdC5UllzuQmXrzEEa6Fxj6GTtSziCuU72ITGH+IDn gSc1WvktGDEXPSR8fiWfAYOUMh1UNQASPcTzx1C/DL9xfnLx57tvDdclxj0sy7NkbqPZ 5qtFMTQ3BCY8XCuH1bE5hZQjtDjmPUy9DHyYoGdopzz52dQZe5WVqP6BfM51i8vuDcaE 4m8EBOyAhkWJLWxgP+nZT7MF8yL4gChR4GJb88pm0Zo2uniDxwscTmtdYCR7r36a82I9 x5TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=DB2Uxt1RaCktv7zz4ekz5QzDi7zff0EFv7ICF/t918I=; b=wuR0zizU4xD7uasqaUs7nCO+RKD1h4CLzjZQDlH4oyf5nKh/cAzW06Sy08+EiWtavj yVwhKp79wx9Knw1fZFt60ZaPntqUJ8TMndMwxt/k9YIhbQ3rejBsvjD7P/TFjItp6AvD qgc9RiIZbs++pg0RPrZmyJJOWxWihlve1VDBkLlU9UPAnIyEpY1q6cqK6e94Y2yXiAhD ndIuwTWTVrWiNxrXMevVdl0ASbvxqnUuGlzW4ggtYDAfQOkzB23ve/cOI2KchZODhm5k kROqtb3xrTkrF1tyPsCKN2w+Tt68n4swtcmsoVs49thnUozvXlZZg1E4l/F9ieOyupNc O/Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=giTpxcRh; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kk11-20020a170903070b00b0019af0ff58b3si10173984plb.388.2023.03.06.20.12.13; Mon, 06 Mar 2023 20:12:25 -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=@mediatek.com header.s=dk header.b=giTpxcRh; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230001AbjCGEJv (ORCPT <rfc822;toshivichauhan@gmail.com> + 99 others); Mon, 6 Mar 2023 23:09:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229545AbjCGEJs (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 6 Mar 2023 23:09:48 -0500 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D014034F54 for <linux-kernel@vger.kernel.org>; Mon, 6 Mar 2023 20:09:45 -0800 (PST) X-UUID: e2a71576bc9d11ed945fc101203acc17-20230307 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=DB2Uxt1RaCktv7zz4ekz5QzDi7zff0EFv7ICF/t918I=; b=giTpxcRhqeUDEp33iyl/SXAv0sT2tktJgpsi+2gn77uaNm7prHs35gwfC/y6QC27EbjgABCcQo2apOKL0gHIYIQQs9LbUKHQQAubxyT3fR8LtLg0yJAgzaPsW9Jwo2DDyKr3EMt2BBHgOq8Mi1XYTkL+1lveq7TvyeEZgAGH7js=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.20,REQID:eb08bc62-7fb9-41c7-860a-5466cb361409,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:25b5999,CLOUDID:edc46cb2-beed-4dfc-bd9c-e1b22fa6ccc4,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0 X-CID-BVR: 0,NGT X-UUID: e2a71576bc9d11ed945fc101203acc17-20230307 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw02.mediatek.com (envelope-from <trevor.wu@mediatek.com>) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1508969569; Tue, 07 Mar 2023 12:09:41 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by mtkmbs11n2.mediatek.inc (172.21.101.187) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.25; Tue, 7 Mar 2023 12:09:40 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.25 via Frontend Transport; Tue, 7 Mar 2023 12:09:40 +0800 From: Trevor Wu <trevor.wu@mediatek.com> To: <broonie@kernel.org>, <lgirdwood@gmail.com>, <tiwai@suse.com>, <perex@perex.cz>, <matthias.bgg@gmail.com>, <angelogioacchino.delregno@collabora.com> CC: <trevor.wu@mediatek.com>, <jiaxin.yu@mediatek.com>, <alsa-devel@alsa-project.org>, <linux-mediatek@lists.infradead.org>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org> Subject: [PATCH 0/4] ASoC: mediatek: fix coverity problems Date: Tue, 7 Mar 2023 12:09:34 +0800 Message-ID: <20230307040938.7484-1-trevor.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759680759713375001?= X-GMAIL-MSGID: =?utf-8?q?1759680759713375001?= |
Series | ASoC: mediatek: fix coverity problems | |
Message
Trevor Wu (吳文良)
March 7, 2023, 4:09 a.m. UTC
Coverity reports some UNINIT and CERT STR31-C problems, so we add initialization and dai id check to resolve problems. Trevor Wu (4): ASoC: mediatek: mt8195: add dai id check before accessing array ASoC: mediatek: mt9195-mt6359: fix UNINIT problem ASoC: mediatek: mt6358: fix UNINIT problem ASoC: mediatek: mt6359: fix UNINIT problem sound/soc/codecs/mt6358.c | 2 +- sound/soc/codecs/mt6359.c | 2 +- sound/soc/mediatek/mt8195/mt8195-dai-adda.c | 17 +- sound/soc/mediatek/mt8195/mt8195-dai-etdm.c | 177 +++++++++++++++++--- sound/soc/mediatek/mt8195/mt8195-dai-pcm.c | 26 ++- sound/soc/mediatek/mt8195/mt8195-mt6359.c | 2 +- 6 files changed, 188 insertions(+), 38 deletions(-)
Comments
On Tue, 07 Mar 2023 12:09:34 +0800, Trevor Wu wrote: > Coverity reports some UNINIT and CERT STR31-C problems, so we add > initialization and dai id check to resolve problems. > > Trevor Wu (4): > ASoC: mediatek: mt8195: add dai id check before accessing array > ASoC: mediatek: mt9195-mt6359: fix UNINIT problem > ASoC: mediatek: mt6358: fix UNINIT problem > ASoC: mediatek: mt6359: fix UNINIT problem > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/4] ASoC: mediatek: mt8195: add dai id check before accessing array commit: ff728899065922534d80170685fb807194d6487b [2/4] ASoC: mediatek: mt9195-mt6359: fix UNINIT problem commit: 1a3f0116b74ba2f9477c28fcf9d66ac7126455fd [3/4] ASoC: mediatek: mt6358: fix UNINIT problem commit: 9760e01b3851dc51d1901876668168328d34a647 [4/4] ASoC: mediatek: mt6359: fix UNINIT problem commit: 3a60fa4c063dacc5eb66660aa23107f3cb8a477e All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark