27 lines
860 B
Diff
27 lines
860 B
Diff
|
From 5a0b992548778e063dbafb6737658be9b5e1e2a9 Mon Sep 17 00:00:00 2001
|
||
|
From: Renu Tyagi <renu.tyagi@samsung.com>
|
||
|
Date: Tue, 23 Sep 2014 09:08:09 +0200
|
||
|
Subject: [PATCH] control: return negative value in case of error
|
||
|
|
||
|
Signed-off-by: renu tyagi <renu.tyagi@samsung.com>
|
||
|
Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
||
|
---
|
||
|
src/control/control.c | 1 +
|
||
|
1 file changed, 1 insertion(+)
|
||
|
|
||
|
diff --git a/src/control/control.c b/src/control/control.c
|
||
|
index d66ed755356f..dd428a1501b4 100644
|
||
|
--- a/src/control/control.c
|
||
|
+++ b/src/control/control.c
|
||
|
@@ -864,6 +864,7 @@ static int snd_ctl_open_conf(snd_ctl_t **ctlp, const char *name,
|
||
|
if (err >= 0) {
|
||
|
if (snd_config_get_type(type_conf) != SND_CONFIG_TYPE_COMPOUND) {
|
||
|
SNDERR("Invalid type for CTL type %s definition", str);
|
||
|
+ err = -EINVAL;
|
||
|
goto _err;
|
||
|
}
|
||
|
snd_config_for_each(i, next, type_conf) {
|
||
|
--
|
||
|
2.1.2
|
||
|
|