OSDN Git Service
(root)
/
android-x86
/
external-alsa-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b356cd2
)
control: return negative value in case of error
author
Renu Tyagi
<renu.tyagi@samsung.com>
Tue, 23 Sep 2014 07:08:09 +0000
(09:08 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 23 Sep 2014 07:08:09 +0000
(09:08 +0200)
Signed-off-by: renu tyagi <renu.tyagi@samsung.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/control/control.c
patch
|
blob
|
history
diff --git
a/src/control/control.c
b/src/control/control.c
index
d66ed75
..
dd428a1
100644
(file)
--- 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) {