mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
ucm: fix out-of-array access in rval_device_lookup_init()
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
64a6d4d1e8
commit
30d1d256e7
1 changed files with 1 additions and 1 deletions
|
|
@ -489,7 +489,7 @@ static int rval_device_lookup_init(snd_use_case_mgr_t *uc_mgr,
|
|||
uc_error("Missing device type!");
|
||||
return -EINVAL;
|
||||
}
|
||||
for (t = types; t; t++)
|
||||
for (t = types; t->name; t++)
|
||||
if (strcasecmp(t->name, s) == 0)
|
||||
return t->init(iter, config);
|
||||
uc_error("Device type '%s' is invalid", s);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue