Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1049733pxb; Thu, 28 Jan 2021 07:00:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJxe2TncXnLIva7wPKzVMC84hDfNaEdW3piVPtELc52zvMKb/0n+SdwFHpyOsVB4CVHsX3Pt X-Received: by 2002:a05:6402:35ca:: with SMTP id z10mr14755853edc.174.1611846025685; Thu, 28 Jan 2021 07:00:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611846025; cv=none; d=google.com; s=arc-20160816; b=oRSwzBai0LKl03i+7UMI21/h6Es3fDYEB5hWBjBotfKAijXR9qgrVpKHyZ4kY+YnIh w3EP//ToT4p0rQH9ShTQdCIhPKKpto32aq2UnFIqQoTb8OwLkgYksGLQSePVwYxCn5k8 CN6laQNeL0XN/SxVh+s8tKpedieYuoKbp7s5ygqNza3vfGskDweKmOb1mAB484QTa24R N4Ex5jPn4ckTbuoAR3UKiVNhQPIpBmtQ8+pSvN8rJvRPQ1H0qMxXWraNNNi4Quvj+wq3 UydstbKYbiXFPUKKVWA4eNWfHlstRBLeDt8quUmwkefIPD/beSx5tIM9GE4rmpeJ33Yr nsPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=CwLDdJlwGT16+annJbznPJ0yFW2qeSD3nTQB0MiVzCw=; b=lEVVtuM3YA6FV3ZWYiZiLT3eJF4Xosl+2R3cxwxjfEQkZpAexutSH2X1HUVQMk/K+l KbeRj1VWeZPO3NXsyV3O3IbSOkab4vTOsGIMQoCEiQ75IMmZCryhBGIGUMsJyRET3Pdu J1qHpMmYFLkGq3diCBoukocMYiMoCW3+v50TaQzVArAOR0mSXuTLrfGg2SalUmagTE// pjKqQ7dOO4MAx/abBo5lDPizQ0StasuV0zLgI+KfyxXDuHs4Ywjgg4dUe6sLwQuqGYM9 b7NIwQzgQ9nETlW2IeM2J17HPNmghoCOh3IeOBkpoDAV/OqiI8i2oVxyIL045OP0dl7t Yrlw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b13si3208618edk.29.2021.01.28.06.59.59; Thu, 28 Jan 2021 07:00:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231755AbhA1O5a (ORCPT + 99 others); Thu, 28 Jan 2021 09:57:30 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:42430 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231537AbhA1O41 (ORCPT ); Thu, 28 Jan 2021 09:56:27 -0500 Received: from 1.general.cking.uk.vpn ([10.172.193.212]) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1l58i1-0004jj-BX; Thu, 28 Jan 2021 14:55:45 +0000 Subject: Re: [PATCH][next] Input: iqs5xx: Ensure error_bl is initialized on error exit path To: Jeff LaBundy Cc: Dmitry Torokhov , linux-input@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210128121903.636652-1-colin.king@canonical.com> <20210128143946.GA14625@labundy.com> From: Colin Ian King Message-ID: Date: Thu, 28 Jan 2021 14:55:44 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <20210128143946.GA14625@labundy.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28/01/2021 14:39, Jeff LaBundy wrote: > Hi Colin, > > On Thu, Jan 28, 2021 at 12:19:03PM +0000, Colin King wrote: >> From: Colin Ian King >> >> Currently if the call to qs5xx_fw_file_parse fails the error return >> exit path will read the uninitialized variable error_bl. Fix this >> by ensuring error_bl is initialized to zero. >> >> Addresses-Coverity: ("Uninitialized scalar variable") >> Fixes: 2539da6677b6 ("Input: iqs5xx - preserve bootloader errors") >> Signed-off-by: Colin Ian King > > This was fixed in [1]; it just needs pushed. OK, thanks for letting me know. > > [1] https://patchwork.kernel.org/patch/12043701 > >> --- >> drivers/input/touchscreen/iqs5xx.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/input/touchscreen/iqs5xx.c b/drivers/input/touchscreen/iqs5xx.c >> index 05e0c6ff217b..54f30038dca4 100644 >> --- a/drivers/input/touchscreen/iqs5xx.c >> +++ b/drivers/input/touchscreen/iqs5xx.c >> @@ -852,7 +852,7 @@ static int iqs5xx_fw_file_parse(struct i2c_client *client, >> static int iqs5xx_fw_file_write(struct i2c_client *client, const char *fw_file) >> { >> struct iqs5xx_private *iqs5xx = i2c_get_clientdata(client); >> - int error, error_bl; >> + int error, error_bl = 0; >> u8 *pmap; >> >> if (iqs5xx->bl_status == IQS5XX_BL_STATUS_NONE) >> -- >> 2.29.2 >> > > Kind regards, > Jeff LaBundy >