From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C6B75492E37 for ; Mon, 19 Oct 2026 08:17:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792397856; cv=none; b=UZnoDI4SOrTx9e/Dy1D0FMe+eZuFPrigkKuYVdRyCmQGFB60qLrGqLscAaxYmS8Rczf5XCP0uws83QZdVjpi9QuM7fsZIpUIfwhO/GZwsTDs90577dISJL8WFTMJ3vJ+Fo/3OZRdjZFqrcCJhN9iFRRqVSlmJXQ0wuBhbbjTRE4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792397856; c=relaxed/simple; bh=Gt8N0UB2KPF1e7vkq2yrNHlZ7lN/lCheiZswsOhLaPc=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=MQKZv71cmY9UkhsvNf6JMrWHphBvlho0Pa81QmL7oi/BX53XusVSYHOSJq/fnW6CbbxbHEOBokNMOsNddgc0WpeZMyfssjdAXRO+piMsMZpNqJZjcyaxGDTJPudziJEwJgO2r3LwlaxI/x1EPQ+n/57mcPq5pGRnvm4GjrxnL9M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=TtVmbry6; arc=none smtp.client-ip=209.85.221.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="TtVmbry6" Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-48b060ec084so1146078f8f.0 for ; Mon, 19 Oct 2026 01:17:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1792397853; x=1793002653; darn=lists.linux.dev; h=content-transfer-encoding:content-disposition:content-type :mime-version:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=vo36ty9zCEoV7zWlmQRq5FLQEFjKxu8JDIOaintjvOo=; b=TtVmbry61PuDnvdywYyT3e7u356uUvtOzdtyTMSy9+tZSgYAbB55WuFcTcu8jVrDtJ Ago+RfQqXRLDWsJ66+tP5ayS1eXSJoAq0A6NKe8RHtd/CYgJ+i/EJjZLo4WkbqVTCxnO 7RwlDrrZk1nn1zXbk0iwkmi0HUcy9insB7WGKjUgnOauAjKSwf2z77Kj3ieu4ZAN9z6c fmIniwg2ouWeUrK2ueG0o3HqrWNSliJpPU8MBZWbSft2B3zMjIc7DUKCI+UCxCjok60y 6z7hONQEpdKnz4NGrcoxmBcqzqCq0PBEXN44yDBfnY0Z1lknsixjkB9wrHz0z6fAiLnr PDoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792397853; x=1793002653; h=content-transfer-encoding:content-disposition:content-type :mime-version:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=vo36ty9zCEoV7zWlmQRq5FLQEFjKxu8JDIOaintjvOo=; b=GrLqHqBt1R4/iyI1986qNKxpF5j4x615ZH52RAxF6HJM1fuWlq2dOlpcgctdeqXwYC l6jS+jJqiVx/6MDyseT7CPjGts+hZTqV5Gtb+cOuqbB42hCNe5xbGbtXLfUalNC5BBEn tccDFMRnmnvBtPrpqhP4lkOaqmrkK7uTtrtlYlMBkQz7m33d1dLea3H4WezQRZW6ps6i f1U/ADoMWAwInU0Ol2JyR/AapKzomoD9KMalVPXRPhQnnBGxsPU8gbxo982G7xWCtdVH HNjR7Lfw3OkInMcVX7jX3T1r4dkVkny16lO6h/+ZEs5txwP1oUVuGEG+N7aKzb7LHOxx stzQ== X-Forwarded-Encrypted: i=1; AKwUvByvZkLColLLMRHbizPGni4F1IDOpQ7OVQYnCKGV9gfpAY+RDS4jkzfLbwZ2JNbLK70xIa8u9DgHA0WQXHjf@lists.linux.dev X-Gm-Message-State: AFq9FYLEkVx/2UjRr1hbza+RdaLnyKHpzO0yLHDM6fzOfm2/1L8l0mnU Gv3YzWFZmD8pCpL5MAXn9di+kfNtXQkoCVcvjUaStgtAW23bY8fFjJkl X-Gm-Gg: AYBFou0cizj1iv6iY1Xzc9VUuVDBVD/osGsfBFfQPc0X8HmHihtCKFyKmnDMIO7h6tW y8adK0Iqe+HV8QxksRggWFiMJDVaBJllZH3cJ82xigbOhSBi5FNnvMpf2mLnNY0N1E1yt8kCie2 LcKhSLALTVK8xqckuZ+MQrCY0Wkpc66d0Eao7KT44G5kolXY2xqvJnv4Y1Wz0NRfPJHyhzgK3Oc QTKruWr8RBauW1ivreyjph6UABsicOz9WrFDGyhtuTcXNgIx2HCf6uQjbgnnNTBuJgWDGucWHI1 1afJsm43yjjufLi8GenB8WQmKzaan/++M33BuXZAoSSLgiN3xLO+jv3SKq0r/GO13woaRYkfn2z +T7LqzeXm5N8YzkiOzBYsfJqrT5FQmanu8FgG27mWpv9jFN+1zvfhVw+BEfgo16SBHlzn1LZS9r /03dpvKd6jN/sWIS14jbqSDbaUDUrQZhkznPPnTHwm+xK45Pti4Aq2XoSW+YRuQQ6yUv8= X-Received: by 2002:a05:6000:26ca:b0:48a:f318:ac03 with SMTP id ffacd0b85a97d-48e07f98fa0mr13856654f8f.25.1792397852653; Mon, 19 Oct 2026 01:17:32 -0700 (PDT) Received: from localhost ([2c0f:3d00:6be:8900:ce5e:9212:ea4b:f30]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48dfd471a35sm18529901f8f.7.2026.10.19.01.17.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2026 01:17:32 -0700 (PDT) Date: Mon, 19 Oct 2026 11:17:28 +0300 From: Dan Carpenter To: oe-kbuild@lists.linux.dev, Amadeusz =?utf-8?B?U8WCYXdpxYRza2k=?= Cc: lkp@intel.com, oe-kbuild-all@lists.linux.dev, Mark Brown Subject: [broonie-sound:for-7.4 37/72] sound/soc/soc-dapm.c:2893 snd_soc_dapm_free_widget() warn: variable dereferenced before check 'w->dapm' (see line 2891) Message-ID: Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Sorry for sending this without a subject... :( tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.4 head: ba982c33278c1fc739c8c220f410d6539de9d9b9 commit: 568406bc832e7e9e333e2ab05aafd0b83ffb9610 [37/72] ASoC: soc-dapm: Remove widget from cache on removal config: nios2-randconfig-r2202-20261017 (https://download.01.org/0day-ci/archive/20261018/202610180339.A6POXeNa-lkp@intel.com/config) compiler: nios2-linux-gcc (GCC) 11.5.0 smatch: v0.5.0-9187-g5189e3fb If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Reported-by: Dan Carpenter | Closes: https://lore.kernel.org/r/202610180339.A6POXeNa-lkp@intel.com/ smatch warnings: sound/soc/soc-dapm.c:2893 snd_soc_dapm_free_widget() warn: variable dereferenced before check 'w->dapm' (see line 2891) vim +2893 sound/soc/soc-dapm.c b97e26980f6c13 Lars-Peter Clausen 2015-07-21 2870 void snd_soc_dapm_free_widget(struct snd_soc_dapm_widget *w) 2b97eabc09f42d Richard Purdie 2006-10-06 2871 { 568406bc832e7e Amadeusz Sławiński 2026-10-14 2872 struct snd_soc_dapm_context *d; 2b97eabc09f42d Richard Purdie 2006-10-06 2873 struct snd_soc_dapm_path *p, *next_p; a3423b02cf745c Lars-Peter Clausen 2015-08-11 2874 enum snd_soc_dapm_direction dir; 2b97eabc09f42d Richard Purdie 2006-10-06 2875 1c9096f32ad23f Kuninori Morimoto 2022-10-17 2876 if (!w) 1c9096f32ad23f Kuninori Morimoto 2022-10-17 2877 return; 1c9096f32ad23f Kuninori Morimoto 2022-10-17 2878 2b97eabc09f42d Richard Purdie 2006-10-06 2879 list_del(&w->list); 5c6679b5cb120f Thomas Hebb 2020-12-12 2880 list_del(&w->dirty); 8ddab3f5107c39 Jarkko Nikula 2010-12-14 2881 /* 8ddab3f5107c39 Jarkko Nikula 2010-12-14 2882 * remove source and sink paths associated to this widget. 8ddab3f5107c39 Jarkko Nikula 2010-12-14 2883 * While removing the path, remove reference to it from both 8ddab3f5107c39 Jarkko Nikula 2010-12-14 2884 * source and sink widgets so that path is removed only once. 8ddab3f5107c39 Jarkko Nikula 2010-12-14 2885 */ af6d53db28e644 Kuninori Morimoto 2026-01-20 2886 dapm_for_each_direction(dir) { a3423b02cf745c Lars-Peter Clausen 2015-08-11 2887 snd_soc_dapm_widget_for_each_path_safe(w, dir, p, next_p) 8872293fc38c49 Lars-Peter Clausen 2013-06-14 2888 dapm_free_path(p); a3423b02cf745c Lars-Peter Clausen 2015-08-11 2889 } 8872293fc38c49 Lars-Peter Clausen 2013-06-14 2890 8ad13cdc92f663 Trevor Wu 2023-05-26 @2891 dapm_debugfs_free_widget(w); ^ This dereferences "w->dapm" 8ad13cdc92f663 Trevor Wu 2023-05-26 2892 568406bc832e7e Amadeusz Sławiński 2026-10-14 @2893 if (w->dapm) { ^^^^^^^ So this check is too late. 568406bc832e7e Amadeusz Sławiński 2026-10-14 2894 if (w->dapm->card) { 568406bc832e7e Amadeusz Sławiński 2026-10-14 2895 for_each_card_dapms(w->dapm->card, d) { -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki