mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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:
parent
e49ce14150
commit
bafeafeab9
5 changed files with 8 additions and 5 deletions
|
|
@ -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",
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue