Commit 3c4694be authored by Adam Belay's avatar Adam Belay Committed by Linus Torvalds

[PNPBIOS] avoid making potentially broken calls in proc.c

This patch prevents /proc/bus/pnp/devices from requesting on-boot node
information.  Dynamic information is used instead.
parent 045e0aec
......@@ -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,
......
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