[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: Luc Van Oostenryck <luc.vanoostenryck@looxix.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
47f176fdaf
commit
45ae36cbce
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue