projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'for-2.6.29' into for-2.6.30
[deliverable/linux.git]
/
sound
/
soc
/
codecs
/
twl4030.c
diff --git
a/sound/soc/codecs/twl4030.c
b/sound/soc/codecs/twl4030.c
index ddc9f37d863fdf99de849ae8038aaf12e231d231..f530c1e6d9e814955cfd380d82b5f9c3c5a9ee93 100644
(file)
--- a/
sound/soc/codecs/twl4030.c
+++ b/
sound/soc/codecs/twl4030.c
@@
-125,6
+125,9
@@
static inline unsigned int twl4030_read_reg_cache(struct snd_soc_codec *codec,
{
u8 *cache = codec->reg_cache;
+ if (reg >= TWL4030_CACHEREGNUM)
+ return -EIO;
+
return cache[reg];
}
This page took
0.025535 seconds
and
5
git commands to generate.