summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-02-14 01:59:53 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2012-02-14 01:59:53 +0100
commite3f89f4ae4ea0227d49ff1cc1276ef04b2749ed2 (patch)
treed75824dea7ee72a4b384f246f84dbf9aabab8a4b /kernel
parentMerge tag 'battery-fixes-for-v3.3-rc2' of git://git.infradead.org/users/cbou/... (diff)
parentmodule: fix broken isapnp handling in file2alias (diff)
downloadlinux-e3f89f4ae4ea0227d49ff1cc1276ef04b2749ed2.tar.xz
linux-e3f89f4ae4ea0227d49ff1cc1276ef04b2749ed2.zip
Merge tag 'for-linus' of git://github.com/rustyrussell/linux
* tag 'for-linus' of git://github.com/rustyrussell/linux: module: fix broken isapnp handling in file2alias module: make module param bint handle nul value
Diffstat (limited to 'kernel')
-rw-r--r--kernel/params.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/params.c b/kernel/params.c
index 32ee04308285..4bc965d8a1fe 100644
--- a/kernel/params.c
+++ b/kernel/params.c
@@ -97,7 +97,8 @@ static int parse_one(char *param,
for (i = 0; i < num_params; i++) {
if (parameq(param, params[i].name)) {
/* No one handled NULL, so do it here. */
- if (!val && params[i].ops->set != param_set_bool)
+ if (!val && params[i].ops->set != param_set_bool
+ && params[i].ops->set != param_set_bint)
return -EINVAL;
pr_debug("They are equal! Calling %p\n",
params[i].ops->set);