Commit e3f89f4a authored by Linus Torvalds's avatar Linus Torvalds

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
parents 3b582f39 0d86f65e
...@@ -97,7 +97,8 @@ static int parse_one(char *param, ...@@ -97,7 +97,8 @@ static int parse_one(char *param,
for (i = 0; i < num_params; i++) { for (i = 0; i < num_params; i++) {
if (parameq(param, params[i].name)) { if (parameq(param, params[i].name)) {
/* No one handled NULL, so do it here. */ /* 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; return -EINVAL;
pr_debug("They are equal! Calling %p\n", pr_debug("They are equal! Calling %p\n",
params[i].ops->set); params[i].ops->set);
......
...@@ -932,7 +932,7 @@ static int do_isapnp_entry(const char *filename, ...@@ -932,7 +932,7 @@ static int do_isapnp_entry(const char *filename,
(id->function >> 12) & 0x0f, (id->function >> 8) & 0x0f); (id->function >> 12) & 0x0f, (id->function >> 8) & 0x0f);
return 1; return 1;
} }
ADD_TO_DEVTABLE("isa", struct isapnp_device_id, do_isapnp_entry); ADD_TO_DEVTABLE("isapnp", struct isapnp_device_id, do_isapnp_entry);
/* /*
* Append a match expression for a single masked hex digit. * Append a match expression for a single masked hex digit.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment