projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e767e05
)
drivers/serial/mpc52xx_uart.c: fix array overindexing check
author
Roel Kluin
<
[email protected]
>
Thu, 28 May 2009 21:34:29 +0000
(14:34 -0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 29 May 2009 15:40:02 +0000
(08:40 -0700)
The check for an overindexing of mpc52xx_uart_{ports,nodes} has an
off-by-one.
Signed-off-by: Roel Kluin <
[email protected]
>
Acked-by: Wolfram Sang <
[email protected]
>
Acked-by: Grant Likely <
[email protected]
>
Cc: Benjamin Herrenschmidt <
[email protected]
>
Cc: Alan Cox <
[email protected]
>
Cc: <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/serial/mpc52xx_uart.c
patch
|
blob
|
history
diff --git
a/drivers/serial/mpc52xx_uart.c
b/drivers/serial/mpc52xx_uart.c
index 7f72f8ceaa6f0ace5bbfac731662999081b4ebc5..b3feb6198d57171b30edcf4d3a51cada259af29b 100644
(file)
--- a/
drivers/serial/mpc52xx_uart.c
+++ b/
drivers/serial/mpc52xx_uart.c
@@
-988,7
+988,7
@@
mpc52xx_console_setup(struct console *co, char *options)
pr_debug("mpc52xx_console_setup co=%p, co->index=%i, options=%s\n",
co, co->index, options);
- if ((co->index < 0) || (co->index > MPC52xx_PSC_MAXNUM)) {
+ if ((co->index < 0) || (co->index >
=
MPC52xx_PSC_MAXNUM)) {
pr_debug("PSC%x out of range\n", co->index);
return -EINVAL;
}