android_kernel_motorola_sm6225/sound/pci/mixart
Dan Carpenter b0cc58a25d ALSA: mixart: range checking proc file
The original code doesn't take into consideration that the value of
MIXART_BA0_SIZE - pos can be less than zero which would lead to a large
unsigned value for "count".

Also I moved the check that read size is a multiple of 4 bytes below
the code that adjusts "count".

Signed-off-by: Dan Carpenter <error27@gmail.com>
Cc: <stable@kernel.org>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2010-04-06 18:52:39 +02:00
..
Makefile [ALSA] Changed Jaroslav Kysela's e-mail from perex@suse.cz to perex@perex.cz 2007-10-16 16:51:18 +02:00
mixart.c ALSA: mixart: range checking proc file 2010-04-06 18:52:39 +02:00
mixart.h [ALSA] semaphore -> mutex (PCI part) 2006-03-22 10:25:29 +01:00
mixart_core.c ALSA: hda - Convert from takslet_hi_schedule() to tasklet_schedule() 2008-12-18 12:17:55 +01:00
mixart_core.h IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
mixart_hwdep.c Merge branch 'topic/misc' into for-linus 2009-03-24 00:35:50 +01:00
mixart_hwdep.h [ALSA] Remove xxx_t typedefs: PCI miXart 2006-01-03 12:19:16 +01:00
mixart_mixer.c ALSA: Kill snd_assert() in sound/pci/* 2008-08-13 11:46:38 +02:00
mixart_mixer.h [ALSA] Remove xxx_t typedefs: PCI miXart 2006-01-03 12:19:16 +01:00