From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carlos Corbacho Subject: [RFC, PATCH 4/4] ACPI: WMI: Limit size of device string to 19 characters Date: Sat, 8 Dec 2007 02:03:40 +0000 Message-ID: <200712080203.40761.carlos@strangeworlds.co.uk> References: <200712080158.39349.carlos@strangeworlds.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Return-path: Received: from slackadelic.com ([65.196.224.53]:38188 "EHLO mail.slackadelic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755024AbXLHCFN (ORCPT ); Fri, 7 Dec 2007 21:05:13 -0500 In-Reply-To: <200712080158.39349.carlos@strangeworlds.co.uk> Content-Disposition: inline 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. --- 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 7662ca5..3467b34 100644 --- a/drivers/acpi/wmi.c +++ b/drivers/acpi/wmi.c @@ -832,7 +832,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) -- 1.5.3.4