]> git.hungrycats.org Git - linux/commitdiff
[PNPBIOS] avoid making potentially broken calls in proc.c
authorAdam Belay <ambx1@neo.rr.com>
Wed, 14 Apr 2004 04:34:24 +0000 (04:34 +0000)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 14 Apr 2004 04:34:24 +0000 (04:34 +0000)
This patch prevents /proc/bus/pnp/devices from requesting on-boot node
information.  Dynamic information is used instead.

drivers/pnp/pnpbios/proc.c

index 14eeff632c7e38955c30e824f80bf9da19d9dc3f..063ae5ecf1d0ce3061ce6be47d3299e752ab7012 100644 (file)
@@ -139,7 +139,7 @@ static int proc_read_devices(char *buf, char **start, off_t pos,
                /* 26 = the number of characters per line sprintf'ed */
                if ((p - buf + 26) > count)
                        break;
-               if (pnp_bios_get_dev_node(&nodenum, PNPMODE_STATIC, node))
+               if (pnp_bios_get_dev_node(&nodenum, PNPMODE_DYNAMIC, node))
                        break;
                p += sprintf(p, "%02x\t%08x\t%02x:%02x:%02x\t%04x\n",
                             node->handle, node->eisa_id,