From nobody Tue Apr 7 02:34:18 2026 Received: from mail.nppct.ru (mail.nppct.ru [195.133.245.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 04A6A338592 for ; Mon, 16 Mar 2026 19:18:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.133.245.4 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773688718; cv=none; b=Vf46SeJVVlgkAGNcSP7CF5+r8vUWne5/hObMB7kxpqMoizYO+N6B7aBip67Mqha4pl2MZeRqIVHLN9u2CxZZ+53w4idk5nP+khs+f4aSoQx0pgVeZpjNZSLmZFMxpSiJFzJjT4ISDbh0lcX0IK13Jb57XE5bXUAKkH2X2E3Ur7w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773688718; c=relaxed/simple; bh=jBFaxbPcLumDJmvk7B4IVWigww+k8VYarEk03GTGXsQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WzPy17s6Re/hSGyCSH8Wk+u0G6cLDJuASPTQRV98+GZx62Gf6I3Ed8onubxnvTBQ1s9nVg6jJ6YDpX/mEzwcS6H3VXHZ6T0oJ4NfwStRunl0/5UYrwdrKxzQ9eFoNVspPRXBiIOnrfASctJBSr0LvOleISlyZ7zZvYMhD0bXf6M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nppct.ru; spf=pass smtp.mailfrom=nppct.ru; dkim=pass (1024-bit key) header.d=nppct.ru header.i=@nppct.ru header.b=VB46iteS; arc=none smtp.client-ip=195.133.245.4 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nppct.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nppct.ru Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nppct.ru header.i=@nppct.ru header.b="VB46iteS" Received: from mail.nppct.ru (localhost [127.0.0.1]) by mail.nppct.ru (Postfix) with ESMTP id B45631C0F83 for ; Mon, 16 Mar 2026 22:18:30 +0300 (MSK) Authentication-Results: mail.nppct.ru (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=nppct.ru DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nppct.ru; h= content-transfer-encoding:mime-version:x-mailer:message-id:date :date:subject:subject:to:from:from; s=dkim; t=1773688709; x= 1774552710; bh=jBFaxbPcLumDJmvk7B4IVWigww+k8VYarEk03GTGXsQ=; b=V B46iteS6WkxLnDzVO6g6NXj/cLrNrhNYClGqSp9GmNST3w2DAfsCdlMxd6ABz/mY 6jQmtPLDNenLT5cZAugPEyoGd9AzOYdpgJNWbOCfigP80pmQULuMCxS+w/CBNZYb GPPa6wZIMIEsLfhM58yQNOVit4v4V3iaNOoIjoMVkI= X-Virus-Scanned: Debian amavisd-new at mail.nppct.ru Received: from mail.nppct.ru ([127.0.0.1]) by mail.nppct.ru (mail.nppct.ru [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Jd6FTkA4511j for ; Mon, 16 Mar 2026 22:18:29 +0300 (MSK) Received: from localhost.localdomain (unknown [87.249.24.51]) by mail.nppct.ru (Postfix) with ESMTPSA id BACD21C0EE6; Mon, 16 Mar 2026 22:18:28 +0300 (MSK) From: Alexey Nepomnyashih To: Clemens Ladisch Cc: Alexey Nepomnyashih , Takashi Sakamoto , Jaroslav Kysela , Takashi Iwai , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, lvc-project@linuxtesting.org, stable@vger.kernel.org Subject: [PATCH] ALSA: firewire-lib: fix uninitialized local variable Date: Mon, 16 Mar 2026 19:18:22 +0000 Message-ID: <20260316191824.83249-1-sdl@nppct.ru> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Similar to commit d8dc8720468a ("ALSA: firewire-lib: fix uninitialized local variable"), the local variable `curr_cycle_time` in process_rx_packets() is declared without initialization. When the tracepoint event is not probed, the variable may appear to be used without being initialized. In practice the value is only relevant when the tracepoint is enabled, however initializing it avoids potential use of an uninitialized value and improves code safety. Initialize `curr_cycle_time` to zero. Fixes: fef4e61b0b76 ("ALSA: firewire-lib: extend tracepoints event includin= g CYCLE_TIME of 1394 OHCI") Cc: stable@vger.kernel.org Signed-off-by: Alexey Nepomnyashih --- sound/firewire/amdtp-stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/firewire/amdtp-stream.c b/sound/firewire/amdtp-stream.c index e97721f80f65..8e70da850fac 100644 --- a/sound/firewire/amdtp-stream.c +++ b/sound/firewire/amdtp-stream.c @@ -1164,7 +1164,7 @@ static void process_rx_packets(struct fw_iso_context = *context, u32 tstamp, size_ struct pkt_desc *desc =3D s->packet_descs_cursor; unsigned int pkt_header_length; unsigned int packets; - u32 curr_cycle_time; + u32 curr_cycle_time =3D 0; bool need_hw_irq; int i; =20 --=20 2.43.0