Skip to contentSkip to conversation

ACPI: WMI: Limit size of device string to 19 characters

PATCH New Carlos Corbacho 1 participant 1 message Dec 18, 2007 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPI: WMI: Limit size of device string to 19 characters

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

CC Len Brown <[email protected]>
CC Matthew Garrett <[email protected]>

---

 drivers/acpi/wmi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/acpi/wmi.c +1 -1
index f9f289e..0106ec4 100644
@@ -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)