Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp37772322rwd; Tue, 11 Jul 2023 20:31:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlGH/0Ol8b/XwK+FncXDctul0S3M+QbChaisfxa1ro9mEbmisu6HmvLISbJph+Jmpo+O9Sio X-Received: by 2002:a05:6a00:290e:b0:668:8ad5:778f with SMTP id cg14-20020a056a00290e00b006688ad5778fmr1039690pfb.17.1689132714007; Tue, 11 Jul 2023 20:31:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689132713; cv=none; d=google.com; s=arc-20160816; b=oSGNeR88WSRJeRQAgfNn3Q9LvvRAFzv1jJA7cN1LLGEQEnujwlwTa0Gb9Flxyi5xcW yjs8UwsrLMzgiX8KYyblcHKH0Iw2GBWRA7K4Lm5p/OQr+v8u8ec957wxDD2It7K+K9RM jVpcxpl2TvS2f8aABVsyZgK5kbPuiAnQd51uw7ihpyz0ZN1Qe+l8uZi0gOdnI9F/tmj/ upbVcy9rR9muXUl93R7fFMKxupXC7Q1A94YYUd3DJj2kkUlOsiCtEqAduHhSWG1VUp13 tAVZSQKVdICjpqw0KzWZ/SCm/tpVOm4Ds8OdvgYdX7ArHBrMMl84yrlA+yLEka8FHaou eFwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=LLdu1fvLux0ReD8fvh4dHw8JgPbAS060tzIDEXsWTa8=; fh=a+/RUXJ85nJOSsHX+vKm3FMFCj/eVVYzovUTI8I9wHM=; b=GNmfRVg6pCNOm/CeC8nfBKdTcW7g69BM5xBboVSfB1T8CVhk4DP8lA8oj9GRZ8qGQO DqaXNIunhunP2pTt95Xgzn7uGXEoXut1zGdMKWuFJEHVaqUFVvVinF5NupYqMt4N0uVn EUsHBbiajnDVjsy65kJbYV844PpQhHgEkGeY0M+jiUTeu8bUTBAHGD9K5SJ8/UJohICL yxegsI0YxkaE3CuIT+FLEsVk/sQDxtKFzWR1Fx3aWEC/zZUV9SoJpNnPtRh3Wm0zXvSd vB8Ehy4K6upzXFbMby1VTjaiBlUZ9YReWd9/bGu4dH4TKAcreUvTbDSYCcANpf3cDFeN /XtA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ay22-20020a056a00301600b00682686181c2si2466489pfb.65.2023.07.11.20.31.41; Tue, 11 Jul 2023 20:31:53 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231221AbjGLC7k (ORCPT + 99 others); Tue, 11 Jul 2023 22:59:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229983AbjGLC7j (ORCPT ); Tue, 11 Jul 2023 22:59:39 -0400 Received: from n169-112.mail.139.com (n169-112.mail.139.com [120.232.169.112]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C774E6F; Tue, 11 Jul 2023 19:59:35 -0700 (PDT) X-RM-TagInfo: emlType=0 X-RM-SPAM: X-RM-SPAM-FLAG: 00000000 Received: from localhost.localdomain (unknown[183.194.159.125]) by rmsmtp-lg-appmail-19-12022 (RichMail) with SMTP id 2ef664ae17086da-de900; Wed, 12 Jul 2023 10:59:22 +0800 (CST) X-RM-TRANSID: 2ef664ae17086da-de900 From: Shenghao Ding <13916275206@139.com> To: broonie@kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, lgirdwood@gmail.com, perex@perex.cz, pierre-louis.bossart@linux.intel.com Cc: kevin-lu@ti.com, shenghao-ding@ti.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, liam.r.girdwood@intel.com, mengdong.lin@intel.com, x1077012@ti.com, peeyush@ti.com, navada@ti.com, tiwai@suse.de, Shenghao Ding <13916275206@139.com> Subject: [PATCH v1] ALSA: hda/tas2781: fix 'fw_entry' is used uninitialized Date: Wed, 12 Jul 2023 10:44:08 +0800 Message-Id: <20230712024408.316793-1-13916275206@139.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,FROM_LOCAL_DIGITS, FROM_LOCAL_HEX,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 Fix 'fw_entry' is used uninitialized. Signed-off-by: Shenghao Ding <13916275206@139.com> Changes in v1: | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202307070922.doxi1HFc-lkp@intel.com/ --- sound/soc/codecs/tas2781-fmwlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/tas2781-fmwlib.c b/sound/soc/codecs/tas2781-fmwlib.c index eb55abae0d7b..0b08e24ed23a 100644 --- a/sound/soc/codecs/tas2781-fmwlib.c +++ b/sound/soc/codecs/tas2781-fmwlib.c @@ -1908,7 +1908,7 @@ int tas2781_load_calibration(void *context, char *file_name, { struct tasdevice_priv *tas_priv = (struct tasdevice_priv *)context; struct tasdevice *tasdev = &(tas_priv->tasdevice[i]); - const struct firmware *fw_entry; + const struct firmware *fw_entry = NULL; struct tasdevice_fw *tas_fmw; struct firmware fmw; int offset = 0; -- 2.34.1