]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 29 May 2009 15:40:02 +0000 (08:40 -0700)
commitb898f4f869da5b9d41f297fff87aca4cd42d80b3
tree877848b7a721fd5e57abf0c29c0629d3342cbb8b
parente767e0561d7fd2333df1921f1ab4176211f9036b
drivers/serial/mpc52xx_uart.c: fix array overindexing check

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>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/serial/mpc52xx_uart.c