diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-01-13 00:02:16 +0100 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-01-13 00:02:16 +0100 |
commit | bafeafeab94b8d3019aac15c2df2ce47b08a6363 (patch) | |
tree | c121e82aee4f0969cf90dfb2dbad46d06a669696 /drivers/misc/lis3lv02d | |
parent | modpost: use linker section to generate table. (diff) | |
download | linux-bafeafeab94b8d3019aac15c2df2ce47b08a6363.tar.xz linux-bafeafeab94b8d3019aac15c2df2ce47b08a6363.zip |
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/misc/lis3lv02d')
-rw-r--r-- | drivers/misc/lis3lv02d/lis3lv02d.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/lis3lv02d/lis3lv02d.c b/drivers/misc/lis3lv02d/lis3lv02d.c index 29d12a70eb1b..a981e2a42f92 100644 --- a/drivers/misc/lis3lv02d/lis3lv02d.c +++ b/drivers/misc/lis3lv02d/lis3lv02d.c @@ -111,6 +111,8 @@ static struct kernel_param_ops param_ops_axis = { .get = param_get_int, }; +#define param_check_axis(name, p) param_check_int(name, p) + module_param_array_named(axes, lis3_dev.ac.as_array, axis, NULL, 0644); MODULE_PARM_DESC(axes, "Axis-mapping for x,y,z directions"); |