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>
Цей коміт міститься в:
@@ -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",
|
||||
};
|
||||
|
||||
|
Посилання в новій задачі
Заблокувати користувача