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>
Цей коміт міститься в:
Rusty Russell
2012-01-13 09:32:16 +10:30
джерело e49ce14150
коміт bafeafeab9
5 змінених файлів з 8 додано та 5 видалено

Переглянути файл

@@ -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",
};