module_param: check type correctness for module_param_array

module_param_array(), unlike its non-array cousins, didn't check the type
of the variable.  Fixing this found two bugs.

Cc: Luca Risolia <[email protected]>
Cc: Mauro Carvalho Chehab <[email protected]>
Cc: Eric Piel <[email protected]>
Cc: [email protected]
Signed-off-by: Rusty Russell <[email protected]>
This commit is contained in:
Rusty Russell 2012-01-13 09:32:16 +10:30
commit bafeafeab9
5 changed files with 8 additions and 5 deletions

View file

@ -33,7 +33,7 @@
/* Module Parameters */
static unsigned int num_modules = CMODIO_MAX_MODULES;
static unsigned char *modules[CMODIO_MAX_MODULES] = {
static char *modules[CMODIO_MAX_MODULES] = {
"empty", "empty", "empty", "empty",
};