Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 300060
b: refs/heads/master
c: c34ce32
h: refs/heads/master
v: v3
  • Loading branch information
Richard Zhao authored and Mark Brown committed Apr 24, 2012
1 parent 3130c8e commit 868f690
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ddb6706af3cd372194cecd2cc61950519df620d7
refs/heads/master: c34ce320d9fe328e3272def20b152f39ccfa045e
6 changes: 3 additions & 3 deletions trunk/sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3631,10 +3631,10 @@ int snd_soc_of_parse_audio_routing(struct snd_soc_card *card,
int i, ret;

num_routes = of_property_count_strings(np, propname);
if (num_routes & 1) {
if (num_routes < 0 || num_routes & 1) {
dev_err(card->dev,
"Property '%s's length is not even\n",
propname);
"Property '%s' does not exist or its length is not even\n",
propname);
return -EINVAL;
}
num_routes /= 2;
Expand Down

0 comments on commit 868f690

Please sign in to comment.