]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ALSA: firewire-lib: Fix uninitialized variable err issue
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Thu, 20 May 2021 13:04:09 +0000 (22:04 +0900)
committerTakashi Iwai <tiwai@suse.de>
Sat, 22 May 2021 06:44:05 +0000 (08:44 +0200)
commit344f0f821a7ee77832f04451e616f313b7d93f1a
tree337d9fcd2cbc3b2ce82d4995bf4a56117aef75dd
parentbe22db77dc50be6d9cf2b20ab689706c9031c054
ALSA: firewire-lib: Fix uninitialized variable err issue

The check of error is just done for the case that CIP header is available.

This commit moves auto variable into the branch to process CIP header.

Addresses-Coverity: ("Uninitialized scalar variable")
Fixes: c09010eeb373 ("ALSA: firewire-lib: handle the case that empty isochronous packet payload for CIP")
Suggested-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20210520130409.GA170303@workstation
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/amdtp-stream.c