commit | b0cc58a25d04160d39a80e436847eaa2fbc5aa09 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <error27@gmail.com> | Tue Apr 06 19:31:26 2010 +0300 |
committer | Takashi Iwai <tiwai@suse.de> | Tue Apr 06 18:52:39 2010 +0200 |
tree | a20f259f6d2081e40ac979db8daad6b71ff7342c | |
parent | a0fd4345f928d72a56e27b23e4cd28c94bf36be5 [diff] |
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>