ucm: Don't crash on attempts to set missing verbs
PATCH 1/1 ucm: Don't crash on attempts to set missing verbs
Mostly for the benefit of alsaucm which passes the specified verb (if any) straight through, but the robustness fix seems better here.
Signed-off-by Mark Brown <[email protected]>
--- src/use-case.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
src/use-case.c +3 -0
@@ -2786,6 +2786,9 @@ int snd_use_case_set_verb(snd_use_case_mgr_t *uc_mgr, {int i =0 , ret = -EINVAL , inactive =0 ; +if (!verb_name) +return -EINVAL ; +pthread_mutex_lock (&uc_mgr->mutex);uc_dbg ("uc_mgr %p, verb_name %s" , uc_mgr, verb_name);
Signature · 1 line
1.7.1