]> git.baikalelectronics.ru Git - kernel.git/commit
mwave: fix read buffer overflow
authorRoel Kluin <roel.kluin@gmail.com>
Wed, 23 Sep 2009 22:57:11 +0000 (15:57 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Sep 2009 14:21:03 +0000 (07:21 -0700)
commit2b9f0dca14415ddb64c8dcbfc261c913826d3977
tree709c209b063b72ed2c152ebfe3240210f1b2937e
parent1ad6bd71904e67e213f63c404d83b6d307e5b982
mwave: fix read buffer overflow

Check whether index is within bounds before grabbing the element.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/mwave/mwavedd.c