]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commitf7a595e98c3140f1271957aa742a6b84407620d4
treee0566fee9bcebfc681d635fd430ccac87604e611
parentdb8df7b0622cc6ddad993da2e4dfaf3b5d98ee30
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