linux/sound
Takashi Iwai e12483e0f3 ALSA: ak4114: Fix wrong register array size
The size of the register cache array is actually 6 instead of 7,
as it caches up to AK4114_REG_INT1_MASK.  This resulted in unexpected
access out of array range, although most of them aren't so serious
(just reading one more byte on the stack at snd_ak4114_create()).

Also, the check of cache size was wrongly done by checking with
sizeof() instead of ARRAY_SIZE().  Fixed this together.

(And yes, hardcoded numbers are bad, but I keep the coding style as is
 for making it clear what this patch actually does.)

Spotted by coverity among several CIDs, e.g. 711621.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-10-29 16:42:36 +01:00
..
aoa
arm ALSA: Use strlcpy() instead of strncpy() 2013-10-29 15:26:12 +01:00
atmel
core ALSA: Limit the fallback card id string size 2013-10-29 15:20:06 +01:00
drivers ALSA: pcsp: Fix initialization with nopcm=1 2013-10-29 15:15:20 +01:00
firewire Merge branch 'dice-driver-playback-only' of git://git.alsa-project.org/alsa-kprivate into for-next 2013-10-22 10:02:57 +02:00
i2c ALSA: ak4114: Fix wrong register array size 2013-10-29 16:42:36 +01:00
isa
mips
oss
parisc
pci ALSA: rme96: Return error code in PCM copy ops 2013-10-29 16:04:37 +01:00
pcmcia
ppc
sh
soc ASoC: Updates for v3.13 2013-10-25 11:43:47 +02:00
sparc
spi
synth
usb ALSA: 6fire: Fix probe of multiple cards 2013-10-29 11:37:11 +01:00
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c
sound_firmware.c