diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-02-13 19:59:53 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-02-13 19:59:53 -0500 |
commit | e3f89f4ae4ea0227d49ff1cc1276ef04b2749ed2 (patch) | |
tree | d75824dea7ee72a4b384f246f84dbf9aabab8a4b | |
parent | 3b582f393150c72b18339bc00d7ed4fb22445ed1 (diff) | |
parent | 0d86f65ed0b727daa06d3aa176314cd175323db6 (diff) |
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
-rw-r--r-- | kernel/params.c | 3 | ||||
-rw-r--r-- | scripts/mod/file2alias.c | 2 |
2 files changed, 3 insertions, 2 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, | |||
97 | for (i = 0; i < num_params; i++) { | 97 | for (i = 0; i < num_params; i++) { |
98 | if (parameq(param, params[i].name)) { | 98 | if (parameq(param, params[i].name)) { |
99 | /* No one handled NULL, so do it here. */ | 99 | /* No one handled NULL, so do it here. */ |
100 | if (!val && params[i].ops->set != param_set_bool) | 100 | if (!val && params[i].ops->set != param_set_bool |
101 | && params[i].ops->set != param_set_bint) | ||
101 | return -EINVAL; | 102 | return -EINVAL; |
102 | pr_debug("They are equal! Calling %p\n", | 103 | pr_debug("They are equal! Calling %p\n", |
103 | params[i].ops->set); | 104 | params[i].ops->set); |
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index e8c969577768..d0de2a2c3a2d 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c | |||
@@ -932,7 +932,7 @@ static int do_isapnp_entry(const char *filename, | |||
932 | (id->function >> 12) & 0x0f, (id->function >> 8) & 0x0f); | 932 | (id->function >> 12) & 0x0f, (id->function >> 8) & 0x0f); |
933 | return 1; | 933 | return 1; |
934 | } | 934 | } |
935 | ADD_TO_DEVTABLE("isa", struct isapnp_device_id, do_isapnp_entry); | 935 | ADD_TO_DEVTABLE("isapnp", struct isapnp_device_id, do_isapnp_entry); |
936 | 936 | ||
937 | /* | 937 | /* |
938 | * Append a match expression for a single masked hex digit. | 938 | * Append a match expression for a single masked hex digit. |