diff --git a/init/main.c b/init/main.c index 0ee9c6866ada1d..a499bd58e1c45e 100644 --- a/init/main.c +++ b/init/main.c @@ -267,7 +267,9 @@ static int __init set_init_arg(char *param, char *val, repair_env_string(param, val, unused, NULL); - for (i = 0; argv_init[i]; i++) { + i = 0; + while(argv_init[i]){ + i++; if (i == MAX_INIT_ARGS) { panic_later = "init"; panic_param = param;