kernel-fxtec-pro1x/sound/i2c/other
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
..
ak4xxx-adda.c ALSA: Use strlcpy() instead of strncpy() 2013-10-29 15:26:12 +01:00
ak4113.c ALSA: Fix typo in drivers sound 2012-11-04 09:20:58 +01:00
ak4114.c ALSA: ak4114: Fix wrong register array size 2013-10-29 16:42:36 +01:00
ak4117.c ALSA: Fix typo in drivers sound 2012-11-04 09:20:58 +01:00
Makefile [media] tea575x: Move from sound to media 2013-08-18 08:09:59 -03:00
pt2258.c sound: Add module.h to the previously silent sound users 2011-10-31 19:31:21 -04:00