From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carlos Corbacho Subject: [PATCH 5/5] [WIP] ACPI: WMI: Limit size of device string to 19 characters Date: Mon, 17 Dec 2007 00:23:44 +0000 Message-ID: <20071217002344.4980.56875.stgit@localhost> References: <20071217002317.4980.71135.stgit@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Return-path: Received: from bb-87-81-255-5.ukonline.co.uk ([87.81.255.5]:34864 "EHLO pacifica." rhost-flags-OK-OK-FAIL-FAIL) by vger.kernel.org with ESMTP id S1764347AbXLQAXS (ORCPT ); Sun, 16 Dec 2007 19:23:18 -0500 In-Reply-To: <20071217002317.4980.71135.stgit@localhost> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: linux-acpi@vger.kernel.org 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 CC: Len Brown CC: Matthew Garrett --- 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 b6f635a..1c7b855 100644 --- a/drivers/acpi/wmi.c +++ b/drivers/acpi/wmi.c @@ -847,7 +847,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)