diff options
author | Jani Nikula <jani.nikula@intel.com> | 2014-08-26 16:52:23 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2014-08-27 08:24:08 -0400 |
commit | 91f9d330cc14932084c37751997213cb0e7ea882 (patch) | |
tree | 8a7494e64787ea72ce4ed86c5298a1b1b7195111 /drivers/tty/serial | |
parent | 6a4c264313c4ae32dc53821a9c57e0dc9696fb81 (diff) |
module: make it possible to have unsafe, tainting module params
Add flags field to struct kernel_params, and add the first flag: unsafe
parameter. Modifying a kernel parameter with the unsafe flag set, either
via the kernel command line or sysfs, will issue a warning and taint the
kernel.
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Jean Delvare <khali@linux-fr.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Li Zhong <zhong@linux.vnet.ibm.com>
Cc: Jon Mason <jon.mason@intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/tty/serial')
-rw-r--r-- | drivers/tty/serial/8250/8250_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/8250/8250_core.c b/drivers/tty/serial/8250/8250_core.c index 1d42dba6121d..bd672948f2f1 100644 --- a/drivers/tty/serial/8250/8250_core.c +++ b/drivers/tty/serial/8250/8250_core.c | |||
@@ -3587,7 +3587,7 @@ static void __used s8250_options(void) | |||
3587 | #ifdef CONFIG_SERIAL_8250_RSA | 3587 | #ifdef CONFIG_SERIAL_8250_RSA |
3588 | __module_param_call(MODULE_PARAM_PREFIX, probe_rsa, | 3588 | __module_param_call(MODULE_PARAM_PREFIX, probe_rsa, |
3589 | ¶m_array_ops, .arr = &__param_arr_probe_rsa, | 3589 | ¶m_array_ops, .arr = &__param_arr_probe_rsa, |
3590 | 0444, -1); | 3590 | 0444, -1, 0); |
3591 | #endif | 3591 | #endif |
3592 | } | 3592 | } |
3593 | #else | 3593 | #else |