diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-06-24 20:49:36 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-06-25 09:38:11 +0200 |
commit | 0cbbeaf370221fc469c95945dd3c1198865c5fe4 (patch) | |
tree | 9de5c36d36c5b1c2022d949df08b34d02d8deafa /scripts/tools-support-relr.sh | |
parent | 5c89c2c7fbfa9124dd521c375b9c82b9ed75bc28 (diff) |
ALSA: firewire-lib: Fix 'amdtp_domain_start()' when no AMDTP_OUT_STREAM stream is found
The intent here is to return an error code if we don't find what we are
looking for in the 'list_for_each_entry()' loop.
's' is not NULL if the list is empty or if we scan the complete list.
Introduce a new 'found' variable to handle such cases.
Fixes: 60dd49298ec5 ("ALSA: firewire-lib: handle several AMDTP streams in callback handler of IRQ target")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/9c9a53a4905984a570ba5672cbab84f2027dedc1.1624560484.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'scripts/tools-support-relr.sh')
0 files changed, 0 insertions, 0 deletions