[ALSA] snd-ak4114: Fix two array overflows
authorJean Delvare <khali@linux-fr.org>
Mon, 5 Feb 2007 12:07:04 +0000 (13:07 +0100)
committerJaroslav Kysela <perex@suse.cz>
Fri, 9 Feb 2007 08:03:55 +0000 (09:03 +0100)
commit1ab774e049085da6facfaf3b24d54158c3f0f5b3
tree3a266d2a2b1f3d1c46e2fca44f3353c4f9886b4b
parent66e27788a33636cf0d9bf22eb9d56a7f4ffa3a84
[ALSA] snd-ak4114: Fix two array overflows

Fix the handling of the TXCSB registers cache. There was one array
overflow in reg_write() and one in snd_ak4114_reg_write(). Thanks
to David Binderman for reporting the latter.
The second overflow probably doesn't matter much, given that the
function snd_ak4114_reg_write() appears to be never called. I wonder
why it exists and why it is exported.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/i2c/other/ak4114.c