diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-01-12 18:02:16 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-01-12 18:02:16 -0500 |
commit | bafeafeab94b8d3019aac15c2df2ce47b08a6363 (patch) | |
tree | c121e82aee4f0969cf90dfb2dbad46d06a669696 /drivers/mfd/janz-cmodio.c | |
parent | e49ce14150c64b29a8dd211df785576fa19a9858 (diff) |
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 <luca.risolia@studio.unibo.it>
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: Eric Piel <eric.piel@tremplin-utc.net>
Cc: linux-media@vger.kernel.org
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/mfd/janz-cmodio.c')
-rw-r--r-- | drivers/mfd/janz-cmodio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/janz-cmodio.c b/drivers/mfd/janz-cmodio.c index 5c2a06acb77f..a9223ed1b7c5 100644 --- a/drivers/mfd/janz-cmodio.c +++ b/drivers/mfd/janz-cmodio.c | |||
@@ -33,7 +33,7 @@ | |||
33 | 33 | ||
34 | /* Module Parameters */ | 34 | /* Module Parameters */ |
35 | static unsigned int num_modules = CMODIO_MAX_MODULES; | 35 | static unsigned int num_modules = CMODIO_MAX_MODULES; |
36 | static unsigned char *modules[CMODIO_MAX_MODULES] = { | 36 | static char *modules[CMODIO_MAX_MODULES] = { |
37 | "empty", "empty", "empty", "empty", | 37 | "empty", "empty", "empty", "empty", |
38 | }; | 38 | }; |
39 | 39 | ||