get_value, called by snd_use_case_get, uses uc_mgr->active_verb without
checking there is one, and hence can segfault. Fix this.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
struct use_case_device *dev;
int err;
+ if (!uc_mgr->active_verb)
+ return -ENOENT;
+
if (item != NULL) {
mod = find_modifier(uc_mgr, uc_mgr->active_verb, item, 0);
if (mod != NULL) {