Files
linux-legacy/sound/pci
Dan Carpenter fb864d07df ALSA: mixart: range checking proc file
commit b0cc58a25d04160d39a80e436847eaa2fbc5aa09 upstream.

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>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-07-05 10:11:19 -07:00
..
2009-06-25 08:52:49 +02:00
2009-06-25 08:52:49 +02:00
2009-06-25 08:52:49 +02:00
2009-06-25 08:52:49 +02:00
2009-06-25 08:52:49 +02:00
2009-06-25 08:52:49 +02:00
2009-06-25 08:52:49 +02:00
2009-06-25 08:52:49 +02:00
2009-06-25 08:52:49 +02:00
2009-06-25 08:52:49 +02:00
2009-06-25 08:52:49 +02:00
2009-06-25 08:52:49 +02:00
2009-06-25 08:52:49 +02:00
2009-06-25 08:52:49 +02:00