From: Dan Carpenter Date: Tue, 6 Apr 2010 16:31:26 +0000 (+0300) Subject: ALSA: mixart: range checking proc file X-Git-Tag: v2.6.34-rc4~29^2~2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0cc58a25d04160d39a80e436847eaa2fbc5aa09;p=pandora-kernel.git 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 Cc: Acked-by: Linus Torvalds Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed