Commit 45ae36cb authored by Luc Van Oostenryck's avatar Luc Van Oostenryck Committed by Linus Torvalds

[PATCH] drivers/char/tipar.c: off by one array access

In the setup function, the delay variable is initialized with ints[2],
but ints is declared as:
	int ints[2];

Since the module parameter should correspond to:
	tipar=timeout,delay

I suppose that the following patch fix the problem.
Signed-off-by: default avatarLuc Van Oostenryck <luc.vanoostenryck@looxix.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 47f176fd
...@@ -396,7 +396,7 @@ static struct file_operations tipar_fops = { ...@@ -396,7 +396,7 @@ static struct file_operations tipar_fops = {
static int __init static int __init
tipar_setup(char *str) tipar_setup(char *str)
{ {
int ints[2]; int ints[3];
str = get_options(str, ARRAY_SIZE(ints), ints); str = get_options(str, ARRAY_SIZE(ints), ints);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment