projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9afed1
)
ALSA: ice1712: fix boundary check in snd_wm8766_write()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Thu, 7 Feb 2013 08:28:48 +0000
(11:28 +0300)
committer
Takashi Iwai
<tiwai@suse.de>
Thu, 7 Feb 2013 08:52:15 +0000
(09:52 +0100)
The wm->regs[] array has WM8766_REG_COUNT (16) elements not
WM8766_REG_RESET (31).
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/ice1712/wm8766.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/ice1712/wm8766.c
b/sound/pci/ice1712/wm8766.c
index 8072adeecf688d4d912511e9035a74a2640aca0c..e473f8a88f9c8e95db609ee4d677c689ffb141f4 100644
(file)
--- a/
sound/pci/ice1712/wm8766.c
+++ b/
sound/pci/ice1712/wm8766.c
@@
-31,7
+31,7
@@
static void snd_wm8766_write(struct snd_wm8766 *wm, u16 addr, u16 data)
{
- if (addr < WM8766_REG_
RESE
T)
+ if (addr < WM8766_REG_
COUN
T)
wm->regs[addr] = data;
wm->ops.write(wm, addr, data);
}