sh: Make sure indexes are positive
authorRoel Kluin <roel.kluin@gmail.com>
Mon, 2 Nov 2009 16:14:42 +0000 (16:14 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 4 Nov 2009 02:48:07 +0000 (11:48 +0900)
commit9016332014404ae1dca7198f93804ac67ba9e918
tree5823e797deb138ba18d1c441910d9781a8b7e561
parentc4b973f532206e1a67b1beae654b44c8be26fc44
sh: Make sure indexes are positive

The indexes are signed, make sure they are not negative
when we read array elements.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/boards/mach-highlander/setup.c
arch/sh/boards/mach-r2d/irq.c
arch/sh/mm/numa.c