From: Carlos Corbacho <carlos@strangeworlds.co.uk>
To: Linux-acpi@vger.kernel.org
Cc: Len Brown <lenb@kernel.org>, Matthew Garrett <mjg59@srcf.ucam.org>
Subject: [RFC, PATCH 4/4] ACPI: WMI: Limit size of device string to 19 characters
Date: Sat, 8 Dec 2007 02:03:40 +0000 [thread overview]
Message-ID: <200712080203.40761.carlos@strangeworlds.co.uk> (raw)
In-Reply-To: <200712080158.39349.carlos@strangeworlds.co.uk>
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
next prev parent reply other threads:[~2007-12-08 2:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-08 1:58 [PATCH 0/4] WMI & acer_wmi Carlos Corbacho
2007-12-08 2:00 ` [PATCH 1/4] ACPI: WMI: Add ACPI-WMI mapping driver Carlos Corbacho
2007-12-08 2:01 ` [PATCH 2/4] acer-wmi: Add driver for newer Acer laptops Carlos Corbacho
2007-12-08 2:02 ` [RFC, PATCH 3/4] ACPI: WMI: Add sysfs userspace interface Carlos Corbacho
2007-12-08 2:03 ` Carlos Corbacho [this message]
2007-12-09 0:21 ` [RFC, PATCH] tc1100-wmi: Add driver for HP Compaq TC1100 Tablets Carlos Corbacho
2007-12-09 0:31 ` Carlos Corbacho
2007-12-09 0:48 ` Matthew Garrett
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200712080203.40761.carlos@strangeworlds.co.uk \
--to=carlos@strangeworlds.co.uk \
--cc=Linux-acpi@vger.kernel.org \
--cc=lenb@kernel.org \
--cc=mjg59@srcf.ucam.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox