[lvc-project] [PATCH] ALSA: firewire-lib: fix uninitialized local variable

Takashi Iwai tiwai at suse.de
Tue Mar 17 11:55:02 MSK 2026


On Mon, 16 Mar 2026 20:18:22 +0100,
Alexey Nepomnyashih wrote:
> 
> 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 including CYCLE_TIME of 1394 OHCI")
> Cc: stable at vger.kernel.org
> Signed-off-by: Alexey Nepomnyashih <sdl at nppct.ru>

Applied now.  Thanks.


Takashi



More information about the lvc-project mailing list