public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] PnP Fixes for 2.6.5
@ 2004-04-14  4:55 Adam Belay
  2004-04-14  4:56 ` Adam Belay
  0 siblings, 1 reply; 6+ messages in thread
From: Adam Belay @ 2004-04-14  4:55 UTC (permalink / raw)
  To: linux-kernel

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;

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-04-14 20:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-14  4:55 [PATCH] PnP Fixes for 2.6.5 Adam Belay
2004-04-14  4:56 ` Adam Belay
2004-04-14  4:56   ` Adam Belay
2004-04-14  4:57     ` Adam Belay
2004-04-14  4:57       ` Adam Belay
2004-04-14  4:58         ` Adam Belay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox