projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ASoC: rcar: off by one in rsnd_scu_set_route()
[platform/adaptation/renesas_rcar/renesas_kernel.git]
/
sound
/
soc
/
sh
/
rcar
/
scu.c
diff --git
a/sound/soc/sh/rcar/scu.c
b/sound/soc/sh/rcar/scu.c
index
1ab1bce
..
5e46ef2
100644
(file)
--- a/
sound/soc/sh/rcar/scu.c
+++ b/
sound/soc/sh/rcar/scu.c
@@
-68,7
+68,7
@@
static int rsnd_scu_set_route(struct rsnd_priv *priv,
return 0;
id = rsnd_mod_id(mod);
- if (id < 0 || id > ARRAY_SIZE(routes))
+ if (id < 0 || id >
=
ARRAY_SIZE(routes))
return -EIO;
/*