diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2015-06-26 06:44:38 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2015-06-28 14:46:14 +0930 |
commit | cf2fde7b39e9446e2af015215d7fb695781af0c1 (patch) | |
tree | 646bec4e1717bf8370a3d4153c59a06a4a78f73f /include/linux/module.h | |
parent | 38183b9c31cf21d8996d6eee2e3a14508b20c418 (diff) | |
download | linux-stable-cf2fde7b39e9446e2af015215d7fb695781af0c1.tar.gz linux-stable-cf2fde7b39e9446e2af015215d7fb695781af0c1.tar.bz2 linux-stable-cf2fde7b39e9446e2af015215d7fb695781af0c1.zip |
param: fix module param locks when !CONFIG_SYSFS.
As Dan Streetman points out, the entire point of locking for is to
stop sysfs accesses, so they're elided entirely in the !SYSFS case.
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include/linux/module.h')
-rw-r--r-- | include/linux/module.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/module.h b/include/linux/module.h index 6ba0e87fa804..46efa1c9de60 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -240,7 +240,9 @@ struct module { unsigned int num_syms; /* Kernel parameters. */ +#ifdef CONFIG_SYSFS struct mutex param_lock; +#endif struct kernel_param *kp; unsigned int num_kp; |