git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'asoc-v3.13-5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie...
[sfrench/cifs-2.6.git]
/
sound
/
soc
/
sh
/
rcar
/
scu.c
diff --git
a/sound/soc/sh/rcar/scu.c
b/sound/soc/sh/rcar/scu.c
index 5e46ef2e8bb8d23ec9297771d30293bcfe21b149..fa8fa15860b9bda89dc5d3af73c85a5c4f076f15 100644
(file)
--- a/
sound/soc/sh/rcar/scu.c
+++ b/
sound/soc/sh/rcar/scu.c
@@
-198,7
+198,8
@@
static struct rsnd_mod_ops rsnd_scu_ops = {
struct rsnd_mod *rsnd_scu_mod_get(struct rsnd_priv *priv, int id)
{
- BUG_ON(id < 0 || id >= rsnd_scu_nr(priv));
+ if (WARN_ON(id < 0 || id >= rsnd_scu_nr(priv)))
+ id = 0;
return &((struct rsnd_scu *)(priv->scu) + id)->mod;
}