module_param: check type correctness for module_param_array
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 12 Jan 2012 23:02:16 +0000 (09:32 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 12 Jan 2012 23:02:16 +0000 (09:32 +1030)
commitbafeafeab94b8d3019aac15c2df2ce47b08a6363
treec121e82aee4f0969cf90dfb2dbad46d06a669696
parente49ce14150c64b29a8dd211df785576fa19a9858
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>
drivers/media/video/et61x251/et61x251_core.c
drivers/media/video/sn9c102/sn9c102_core.c
drivers/mfd/janz-cmodio.c
drivers/misc/lis3lv02d/lis3lv02d.c
include/linux/moduleparam.h