mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
ucm: Fix segfault when device argument is missing from _sw{dev, mod}
Signed-off-by: Juho Hämäläinen <juho.hamalainen@tieto.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
3d7433a3c8
commit
14d653d7c3
1 changed files with 2 additions and 1 deletions
|
|
@ -1647,7 +1647,8 @@ int snd_use_case_set(snd_use_case_mgr_t *uc_mgr,
|
|||
goto __end;
|
||||
}
|
||||
} else {
|
||||
str = NULL;
|
||||
err = -EINVAL;
|
||||
goto __end;
|
||||
}
|
||||
if (check_identifier(identifier, "_swdev"))
|
||||
err = switch_device(uc_mgr, str, value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue