Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp720259iog; Fri, 17 Jun 2022 12:03:56 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vMtcfmprAIaJovDUQSl7CyjN0tsI6xbBcv4OJ6kRR0TI17uxyNJ8qlJSqoGcEB6GowVfvv X-Received: by 2002:a05:6a00:114c:b0:518:c064:d47 with SMTP id b12-20020a056a00114c00b00518c0640d47mr11201042pfm.27.1655492636391; Fri, 17 Jun 2022 12:03:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655492636; cv=none; d=google.com; s=arc-20160816; b=BfKCV4ja29CO7do/iyYqcUpwWGRerJmK8OOzrP7hgmucmFVYh48IJwiD1FP0zD8gYI fcRUbmPneRC5ReG4GaoiJYrChPTmg7orPoBCLKeo72FO60MdCxl1YKXH6I7PPNvDJJCC xFUhVLAqvdeT3C+K+5IIC3O1vuWSRqetA7XsNsJ91HoQqIzwvPdbgwLqwcbzbBtPtqr8 ErufmFiQWUCwjLm4Tt0MBqUUxG9+UJ5xqsN9E+xv6Tka4J3/xG0Yx+K4R0yM99ViuqRM da/M4kMq5bPranHpn2B3JNH1nM7pAHdcEhYGYrNQ5+NlprOOjzQmApMwbpY8X0+aH2V8 G21A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XZ3fXOWFFNo5EN2a7zOFuPuBRX/qxBqnYEdJRu6Ce50=; b=DBEgSwwS9vqqB43z7V3A+ZSYy8c1zhS2XhJhNAQxYkHxzaoE9eXaWRQULQvt8bjExb jD3WTOzdo2qCCkCGgKINqBmIctaOWwUaxNwK8JHfiP18yPhpWy8DsSnJmV1vnIFUSHOw nSMcBpYxf5STDQtX/Gv7KugF3TDalgid4ajUiXvGFnXgWI7YXj3Eev8NQfF4+U8NwwN8 vH7VGUN4dBecHjZdVcEzeowOdWeS47i3e5WU/ebfhaPQ8ndRQO6TY592S4PKZXN8nEgE CLrRfX74ZZapfWIljW59Z3I6ByXi+XifYL6jx8Zl8sff0hs7LmlnnL9GWNUGyiGCfdRL 6tmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bllBknQf; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e187-20020a6369c4000000b0040c37758b54si4802604pgc.114.2022.06.17.12.03.43; Fri, 17 Jun 2022 12:03:56 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=bllBknQf; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231937AbiFQSkw (ORCPT + 99 others); Fri, 17 Jun 2022 14:40:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230253AbiFQSkv (ORCPT ); Fri, 17 Jun 2022 14:40:51 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8940735248 for ; Fri, 17 Jun 2022 11:40:50 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 42D50B82B67 for ; Fri, 17 Jun 2022 18:40:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88FCFC3411B; Fri, 17 Jun 2022 18:40:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655491247; bh=n1lMVZHWVS0s9aDUcOtGjcugDZEPYPqWAceVrfKJziE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bllBknQfo46lK+t1UGHu5aGmd06g7XjsWGWnzWmnjLS9WZN3el6Sn6e1xs8vYeQFO IF89QLRSpSERHH+Lj2NQ4I2sCX/GeD8qcKFpMKnmBuDwu+cim8pzGtCOAJBfagJEwS QLNFsb/NcuYn3HU7dNf3D5SZsDb3dKC8yCV4jcGISWFJV1vOIeL9MaihKnG/onXbWb 3kL3DoUbr0SOFiP/R5G2mQim/U0QnZtaBEglQt54p63vdS7LwUKtUy83rXxVvcQLlx K62HaqnltGH5RYcLP3aHisBh1lAV6lUsB4Mn+dxKb1yPaRnpJ6Rov6SHDjpFdr8WZj JlaSo35snxlnA== Date: Fri, 17 Jun 2022 11:40:45 -0700 From: Nathan Chancellor To: HighW4y2H3ll Cc: Arnd Bergmann , Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: Re: [PATCH] Fix use of uninitialized variable in rts5261_init_from_hw, when efuse_valid == 1. Message-ID: References: <20220617044755.37535-1-huzh@nyu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220617044755.37535-1-huzh@nyu.edu> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Fri, Jun 17, 2022 at 12:47:55AM -0400, HighW4y2H3ll wrote: > Signed-off-by: zhenghao hu > --- > drivers/misc/cardreader/rts5261.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/misc/cardreader/rts5261.c b/drivers/misc/cardreader/rts5261.c > index 749cc5a46d13..f22634b14dc8 100644 > --- a/drivers/misc/cardreader/rts5261.c > +++ b/drivers/misc/cardreader/rts5261.c > @@ -403,7 +403,7 @@ static void rts5261_init_from_hw(struct rtsx_pcr *pcr) > setting_reg1 = PCR_SETTING_REG4; > setting_reg2 = PCR_SETTING_REG5; > } > - } else if (efuse_valid == 0) { > + } else { > // default > setting_reg1 = PCR_SETTING_REG1; > setting_reg2 = PCR_SETTING_REG2; > -- > 2.35.1 > I know Greg already replied but this has been fixed already [1]. Due to a small snafu [2], it won't make 5.19-rc3 but I hope it will be fixed in 5.19-rc4. [1]: https://git.kernel.org/gregkh/char-misc/c/bd476c1306ea989d6d9eb65295572e98d93edeb6 [2]: https://lore.kernel.org/CE205655-557F-486C-AF6A-099749208327@kroah.com/ Cheers, Nathan