Commit 5995f96b authored by Adam Belay's avatar Adam Belay Committed by Linus Torvalds

[PATCH] reserve resources specified by the PnPBIOS properly

A bug prevents the PnP layer from reserving some of the resources
specified by the PnPBIOS.  As a result some systems will have
unpredicable (random crashes etc.) problems because of resource
conflicts, especially when PCMCIA support is enabled.  This patch
fixes the problem by ensuring that the proper resource data is
reserved.
parent 848fc2bc
...@@ -54,7 +54,7 @@ static void __init reserve_resources_of_dev( struct pnp_dev *dev ) ...@@ -54,7 +54,7 @@ static void __init reserve_resources_of_dev( struct pnp_dev *dev )
int i; int i;
for (i=0;i<PNP_MAX_PORT;i++) { for (i=0;i<PNP_MAX_PORT;i++) {
if (pnp_port_valid(dev, i)) if (!pnp_port_valid(dev, i))
/* end of resources */ /* end of resources */
continue; continue;
if (pnp_port_start(dev, i) == 0) if (pnp_port_start(dev, i) == 0)
......
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