]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/video/console/newport_con.c: fix read outside array bounds
authorRoel Kluin <roel.kluin@gmail.com>
Tue, 22 Sep 2009 23:47:38 +0000 (16:47 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 23 Sep 2009 14:39:56 +0000 (07:39 -0700)
commit6e8c15fb91e960bfe4a2a45d568b36e5b0e14386
treee0566fee9bcebfc681d635fd430ccac87604e611
parent6ca2310551a743fe1bced61f47a3fc9f6fe1e383
drivers/video/console/newport_con.c: fix read outside array bounds

It reads linetable[] before checking bounds of index, and ARRAY_SIZE is
required because linetable[] are unsigned shorts.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/console/newport_con.c