diff options
Diffstat (limited to 'meta/recipes-multimedia/alsa/alsa-lib/0003-namehint-correct-the-args-check.patch')
-rw-r--r-- | meta/recipes-multimedia/alsa/alsa-lib/0003-namehint-correct-the-args-check.patch | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/meta/recipes-multimedia/alsa/alsa-lib/0003-namehint-correct-the-args-check.patch b/meta/recipes-multimedia/alsa/alsa-lib/0003-namehint-correct-the-args-check.patch deleted file mode 100644 index 82f8b2bd2a..0000000000 --- a/meta/recipes-multimedia/alsa/alsa-lib/0003-namehint-correct-the-args-check.patch +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | From 10f3401ce356a675e2440993457ee7c8c7e9fcf8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jaroslav Kysela <perex@perex.cz> | ||
3 | Date: Sun, 1 Dec 2019 14:26:40 +0100 | ||
4 | Subject: [PATCH 3/5] namehint: correct the @args check | ||
5 | |||
6 | BugLink: https://github.com/alsa-project/alsa-plugins/issues/3 | ||
7 | Signed-off-by: Jaroslav Kysela <perex@perex.cz> | ||
8 | |||
9 | Upstream-Status: Backport | ||
10 | Signed-off-by: Tanu Kaskinen <tanuk@iki.fi> | ||
11 | --- | ||
12 | src/control/namehint.c | 6 ++++++ | ||
13 | 1 file changed, 6 insertions(+) | ||
14 | |||
15 | diff --git a/src/control/namehint.c b/src/control/namehint.c | ||
16 | index 808df6b5..4927ef97 100644 | ||
17 | --- a/src/control/namehint.c | ||
18 | +++ b/src/control/namehint.c | ||
19 | @@ -348,6 +348,12 @@ static int try_config(snd_config_t *config, | ||
20 | goto __cleanup; | ||
21 | if (snd_config_search(res, "@args", &cfg) >= 0) { | ||
22 | snd_config_for_each(i, next, cfg) { | ||
23 | + /* skip the argument list */ | ||
24 | + snd_config_get_id(snd_config_iterator_entry(i), &str); | ||
25 | + while (*str && *str >= '0' && *str <= '9') str++; | ||
26 | + if (*str == '\0') | ||
27 | + continue; | ||
28 | + /* the argument definition must have the default */ | ||
29 | if (snd_config_search(snd_config_iterator_entry(i), | ||
30 | "default", NULL) < 0) { | ||
31 | err = -EINVAL; | ||
32 | -- | ||
33 | 2.20.1 | ||
34 | |||