]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drivers/serial/mpc52xx_uart.c: fix array overindexing check
authorRoel Kluin <roel.kluin@gmail.com>
Thu, 28 May 2009 21:34:29 +0000 (14:34 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 12 Jun 2009 03:01:24 +0000 (20:01 -0700)
commitb73fee7b6fe138d73ec8706d46691d476b48d9b8
tree16875b091f96a1e5a39b554bcc7e2d6b28d280c3
parentc9f0ff0caef2cc06e90edc7991f0360890febda1
drivers/serial/mpc52xx_uart.c: fix array overindexing check

commit b898f4f869da5b9d41f297fff87aca4cd42d80b3 upstream.

The check for an overindexing of mpc52xx_uart_{ports,nodes} has an
off-by-one.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/serial/mpc52xx_uart.c