All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [WIP] ACPI: WMI: Limit size of device string to 19 characters
@ 2007-12-18 23:52 Carlos Corbacho
  0 siblings, 0 replies; only message in thread
From: Carlos Corbacho @ 2007-12-18 23:52 UTC (permalink / raw)
  To: linux-acpi; +Cc: Len Brown, Matthew Garrett

Until Kay Sievers bus_id variable length code goes in, this is a
temporary workaround.

NOT-Signed-Off-By: Carlos Corbacho <carlos@strangeworlds.co.uk>
CC: Len Brown <lenb@kernel.org>
CC: Matthew Garrett <mjg59@srcf.ucam.org>
---

 drivers/acpi/wmi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/drivers/acpi/wmi.c b/drivers/acpi/wmi.c
index f9f289e..0106ec4 100644
--- a/drivers/acpi/wmi.c
+++ b/drivers/acpi/wmi.c
@@ -848,7 +848,7 @@ static int wmi_create_devs(void)
 		gblock = &wblock->gblock;
 
 		wmi_gtoa(gblock->guid, guid_string);
-		memcpy(guid_dev->bus_id, guid_string, 36);
+		memcpy(guid_dev->bus_id, guid_string, 19);
 
 		result = device_register(guid_dev);
 		if (result)


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-12-18 23:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-18 23:52 [PATCH] [WIP] ACPI: WMI: Limit size of device string to 19 characters Carlos Corbacho

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.