summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2006-08-23 15:44:09 +0200
committerTakashi Iwai <tiwai@suse.de>2006-08-23 15:44:09 +0200
commit66f3749cabe91ce58b865adc56f22a56328517a2 (patch)
tree783c3ffc5d3e4d257b0d6b352833c20124fbf344
parent4165a5bfd1e52da1d4057dcb8d718a4fe8d40066 (diff)
Fix segfault when invalid TLV is passedv1.0.12
Fix segfault when invalid TLV is passed. The invalid TLV entries must be ignored as error.
-rw-r--r--src/mixer/simple_none.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mixer/simple_none.c b/src/mixer/simple_none.c
index 1debacd8..9b217acc 100644
--- a/src/mixer/simple_none.c
+++ b/src/mixer/simple_none.c
@@ -1022,7 +1022,7 @@ static int parse_db_range(struct selem_str *rec, unsigned int *tlv,
default:
break;
}
- return 1; /* not found */
+ return -EINVAL; /* not found */
}
/* convert the given raw volume value to a dB gain