param: remove unnecessary writable charp
sysfs-writable charp arguments need to be locked against modification (since the old ones may be kfreed underneath us). String arguments are much simpler, so use them for small strings (eg. IFNAMSIZ). lkdtm only uses the parameters at module initialization time, so there's not much point making them writable. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Reviewed-by: Takashi Iwai <tiwai@suse.de> Tested-by: Phil Carmody <ext-phil.2.carmody@nokia.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: M. Mohan Kumar <mohan@in.ibm.com> Cc: Greg Kroah-Hartman <gregkh@suse.de> Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> Cc: Jeff Mahoney <jeffm@suse.com> Cc: Julia Lawall <julia@diku.dk> Cc: devel@driverdev.osuosl.org
This commit is contained in:
@ -124,9 +124,9 @@ static int count = DEFAULT_COUNT;
|
||||
module_param(recur_count, int, 0644);
|
||||
MODULE_PARM_DESC(recur_count, " Recursion level for the stack overflow test, "\
|
||||
"default is 10");
|
||||
module_param(cpoint_name, charp, 0644);
|
||||
module_param(cpoint_name, charp, 0444);
|
||||
MODULE_PARM_DESC(cpoint_name, " Crash Point, where kernel is to be crashed");
|
||||
module_param(cpoint_type, charp, 0644);
|
||||
module_param(cpoint_type, charp, 0444);
|
||||
MODULE_PARM_DESC(cpoint_type, " Crash Point Type, action to be taken on "\
|
||||
"hitting the crash point");
|
||||
module_param(cpoint_count, int, 0644);
|
||||
|
Reference in New Issue
Block a user