]> git.hungrycats.org Git - linux/commitdiff
[PATCH] reserve resources specified by the PnPBIOS properly
authorAdam Belay <ambx1@neo.rr.com>
Fri, 21 Nov 2003 11:36:07 +0000 (03:36 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Fri, 21 Nov 2003 11:36:07 +0000 (03:36 -0800)
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.

drivers/pnp/system.c

index 2fcbeefc3bf9aa5aede3b6645bd23cc6d17f3a63..9da1ef7b6af1fef8eb122bb2674dcab83cdc07c6 100644 (file)
@@ -54,7 +54,7 @@ static void __init reserve_resources_of_dev( struct pnp_dev *dev )
        int i;
 
        for (i=0;i<PNP_MAX_PORT;i++) {
-               if (pnp_port_valid(dev, i))
+               if (!pnp_port_valid(dev, i))
                        /* end of resources */
                        continue;
                if (pnp_port_start(dev, i) == 0)