[PATCH] PnP Fixes for 2.6.5

Adam Belay
2004-04-14T20:55:10Z

diff -Nru a/drivers/pnp/pnpbios/rsparser.c b/drivers/pnp/pnpbios/rsparser.c
--- a/drivers/pnp/pnpbios/rsparser.c Wed Apr 14 04:42:06 2004
+++ b/drivers/pnp/pnpbios/rsparser.c Wed Apr 14 04:42:06 2004
@@ -505,6 +505,11 @@

switch (tag) {

+ case LARGE_TAG_ANSISTR:
+ strncpy(dev->name, p + 3, len >= PNP_NAME_LEN ? PNP_NAME_LEN - 2 : len);
+ dev->name[len >= PNP_NAME_LEN ? PNP_NAME_LEN - 1 : len] = '\0';
+ break;
+
case SMALL_TAG_COMPATDEVID: /* compatible ID */
if (len != 4)
goto len_err;