diff options
| author | Alexey Nepomnyashih <sdl@nppct.ru> | 2026-03-16 19:18:22 +0000 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-03-17 09:54:48 +0100 |
| commit | bb120ad57def62e3f23e3d999c5fbed11f610993 (patch) | |
| tree | 1f78b8997694e74c7f1ce89465c172f87d209183 /include/mtd/git@git.tavy.me:linux.git | |
| parent | 0bdf27abaf8940592207be939142451436afe39f (diff) | |
ALSA: firewire-lib: fix uninitialized local variable
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@vger.kernel.org
Signed-off-by: Alexey Nepomnyashih <sdl@nppct.ru>
Link: https://patch.msgid.link/20260316191824.83249-1-sdl@nppct.ru
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/mtd/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
