Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp6383850rwb; Wed, 18 Jan 2023 04:39:04 -0800 (PST) X-Google-Smtp-Source: AMrXdXtl7DDz2D+otydrhI6gYc7kzghn+fXOqdQP8u74Bw0smVxWfhGo1omapRGqPhCyUPILOYy5 X-Received: by 2002:a17:90a:d802:b0:229:ade0:d0c8 with SMTP id a2-20020a17090ad80200b00229ade0d0c8mr5051292pjv.18.1674045543805; Wed, 18 Jan 2023 04:39:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674045543; cv=none; d=google.com; s=arc-20160816; b=IFqzrq01iFzS82xsSfNG+176n+16N4XiWnLGm1pNb5mwRIRoVPatcNQ5ye7ZjeMK11 mpuHS68uNvJHVi/hhqw4reqekVTdLXJzHhdzFg1GckICHpHBfnJVieIDt8Wi08AkJtQQ KBzvzOIjNtCU29tObAVz8P8Xv9wrLMraoaugzONOr6g3cw6nt0kLdX8t2b/XjumkxwXE STfLLt+/7XOoCumWrPvwb2JA2H0iKJUAYlVCXB8NLJnuWlOgw78F+TKUQOb4kUoZov2T 3km8umMb60XfYRHyxwDT2QBhZVgN4bVAaWrH6bBWaH46mjYhooHKgn3SLRveSEVRFp0G +ibA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=if7MHjs3ox0AHNJEV938xiXcM7R7pv+fqHJUTSuq888=; b=OLmEAdQQxA0Dfof/PB/MakHc4uh1bI5X+Lvgm1KR2IP6bwJT8mV66BbM+kQMwDQtam z6UUxMREllMSbn4q8XG4bd4nWMFZsTrUfdPPk+VHJrtN/1EOerLKUOe1YNhHUcpejLai 7bvbNBYzW5BBeZyIWpeS5W+dvl/0dlE1Thwipa9vjoP3tiHNd33+WMZZCSHvqbRke9dO YG/ac2X+a3GvMkmUm+oHm3ZrTSj0ZWZWkywjknQlBCsf3YQYv8xdeIaQTrNAQNJicPzS TiShM5NuT/dkJh30+zxRaNRADe/USOJA7EeMIrvc9k0zPd8nY7uGKO3HVaWs+O0mR9cu mlEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=B3i27dX1; 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=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mw8-20020a17090b4d0800b0022960cd9da1si2203718pjb.63.2023.01.18.04.38.58; Wed, 18 Jan 2023 04:39:03 -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=@collabora.com header.s=mail header.b=B3i27dX1; 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=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229600AbjARMKG (ORCPT + 45 others); Wed, 18 Jan 2023 07:10:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230329AbjARMHi (ORCPT ); Wed, 18 Jan 2023 07:07:38 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37CCC366B6; Wed, 18 Jan 2023 03:26:25 -0800 (PST) Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 5A0606602E0B; Wed, 18 Jan 2023 11:26:23 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1674041184; bh=TZa+V1LhkWey8bm3oH+yJt3PmzhTZNJXbV1NIoHPsPk=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=B3i27dX1GwzCbsjzOfbjgmGotgiUhd/C82YhEHJ5UVdLoIUXchaHILZPGpw5/B3O3 jGK0UuHMlxBZ8xsmANFlvG6tO09cU6jgy3nkK7Ixh0k0WuFM98XhhYho4Ci1OXVzum yg5UWOCogBFiEDQPPvnS06umVkwFAIFMK36jCv2dMGQ38fcnjPjojwPmotsH5HPRHb vDhkflAPr0mAhxsvUDcDdt3qxKs/ZcYFlXBZ4MsrBq+f49AG/MX3s4jtv59v5GTBs4 6lnE4FKVPb4U6HxRjZBdEXy7kDWpFzaAhmjCWajz2Vs0D1eIeeamD/aTPgjSYVMb7T 6jnzckf8SWBpQ== Message-ID: Date: Wed, 18 Jan 2023 12:26:20 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH 1/2] pinctrl: mediatek: Initialize variable pullen and pullup to zero To: Guodong Liu , Sean Wang , Linus Walleij , Matthias Brugger , Light Hsieh , Rob Herring Cc: linux-mediatek@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Zhiyong Tao References: <20230118062036.26258-1-Guodong.Liu@mediatek.com> <20230118062036.26258-2-Guodong.Liu@mediatek.com> Content-Language: en-US From: AngeloGioacchino Del Regno In-Reply-To: <20230118062036.26258-2-Guodong.Liu@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS 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 Il 18/01/23 07:20, Guodong Liu ha scritto: > Coverity spotted that pullen and pullup is not initialized to zero in > mtk_pctrl_show_one_pin. The uninitialized variable pullen is used in > assignment statement "rsel = pullen;" in mtk_pctrl_show_one_pin, and > Uninitialized variable pullup is used when calling scnprintf. Fix this > coverity by initializing pullen and pullup as zero. > > Fixes: 184d8e13f9b1 ("pinctrl: mediatek: Add support for pin configuration > dump via debugfs.") > Signed-off-by: Guodong Liu Reviewed-by: AngeloGioacchino Del Regno