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

Takashi Iwai tiwai at suse.de
Tue Jan 31 09:33:03 CET 2023


On Mon, 30 Jan 2023 15:15:32 +0100,
Takashi Sakamoto wrote:
> 
> The function local variable, curr_cycle_time is declared without
> initialization. When tracepoints event is not probed, it looks to be
> used as is. This commit fixes it. Fortunately, the value of local variable
> is not used unless the event is probed, thus this commit is for better
> coding.
> 
> Reported-by: Dan Carpenter <error27 at gmail.com>
> Fixes: fef4e61b0b7 ("ALSA: firewire-lib: extend tracepoints event including CYCLE_TIME of 1394 OHCI")
> Signed-off-by: Takashi Sakamoto <o-takashi at sakamocchi.jp>

Thanks, applied now (with the correction of Fixes tag).


Takashi


More information about the Alsa-devel mailing list