From: Liam Girdwood Date: Tue, 21 Dec 2010 22:11:56 +0000 (+0100) Subject: ucm: check for valid value list before dereference. X-Git-Tag: v1.0.24~6^2~7 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=ebb52f69117f9975de46623f5ba32f3c081fe691;p=alsa-lib.git ucm: check for valid value list before dereference. Signed-off-by: Liam Girdwood --- diff --git a/src/ucm/main.c b/src/ucm/main.c index ff7b5e47..aafa4839 100644 --- a/src/ucm/main.c +++ b/src/ucm/main.c @@ -957,6 +957,9 @@ static int get_value1(const char **value, struct list_head *value_list, struct ucm_value *val; struct list_head *pos; + if (!value_list) + return -ENOENT; + list_for_each(pos, value_list) { val = list_entry(pos, struct ucm_value, list); if (check_identifier(identifier, val->name)) {