Browse files

fix insmod reading more than one module parameter

it seems wrong to put '/0' after reading one argument
if we are passing more than one module parameters, they are not being propogated
to the kernel properly.

Second module parameters onwards are simply being ignored by kernel
since insmod incorrectly put '/0' after reading first module parameter

Change-Id: I54283eb30a66a83d5c619ffb1fb174ccf5fdcaf7
  • Loading branch information...
1 parent 705c944 commit 918fb893e889b30fd1836668870a4a46586c8d25 @vkmgeek vkmgeek committed Apr 20, 2010
Showing with 0 additions and 1 deletion.
  1. +0 −1 toolbox/insmod.c
View
1 toolbox/insmod.c
@@ -77,7 +77,6 @@ int insmod_main(int argc, char **argv)
memcpy(ptr, argv[i], len);
ptr += len;
*ptr++ = ' ';
- *ptr++ = '\0';
}
*(ptr - 1) = '\0';
}

0 comments on commit 918fb89

Please sign in to comment.