Commit c9451514 authored by Adam Belay's avatar Adam Belay

[PNP]: Avoid static requests

Recently many PnPBIOS bugs have been triggered by static resource
information requests.  This patch makes an effort to further avoid
making them.
parent 567cfe2b
...@@ -251,7 +251,7 @@ static int pnpbios_set_resources(struct pnp_dev * dev, struct pnp_resource_table ...@@ -251,7 +251,7 @@ static int pnpbios_set_resources(struct pnp_dev * dev, struct pnp_resource_table
node = pnpbios_kmalloc(node_info.max_node_size, GFP_KERNEL); node = pnpbios_kmalloc(node_info.max_node_size, GFP_KERNEL);
if (!node) if (!node)
return -1; return -1;
if (pnp_bios_get_dev_node(&nodenum, (char )PNPMODE_STATIC, node)) if (pnp_bios_get_dev_node(&nodenum, (char )PNPMODE_DYNAMIC, node))
return -ENODEV; return -ENODEV;
if(pnpbios_write_resources_to_node(res, node)<0) { if(pnpbios_write_resources_to_node(res, node)<0) {
kfree(node); kfree(node);
......
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