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:
Juho Hämäläinen 2013-05-24 14:01:25 +03:00 committed by Takashi Iwai
parent 3d7433a3c8
commit 14d653d7c3

View file

@ -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);