summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2017-01-11 09:39:40 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2017-01-11 09:39:40 +0000
commite22b403aefa1b84d3071bf72c466b49b957c5675 (patch)
treebd79e4c30f181746d57acd84de2cd44738c26e88 /sys/dev
parentcc1b65d733450f0cfaf02d74f08f66a033df6315 (diff)
Increase the size of the buffers used for _HID and _CID strings to be
able to fit "Hyper_V_Gen_Counter_V1". ok mlarkin@ deraadt@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/acpi/acpi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c
index b2e94dbc103..83300dbe201 100644
--- a/sys/dev/acpi/acpi.c
+++ b/sys/dev/acpi/acpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpi.c,v 1.318 2017/01/08 12:39:16 kettenis Exp $ */
+/* $OpenBSD: acpi.c,v 1.319 2017/01/11 09:39:39 jsg Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
@@ -2813,15 +2813,15 @@ acpi_foundhid(struct aml_node *node, void *arg)
{
struct acpi_softc *sc = (struct acpi_softc *)arg;
struct device *self = (struct device *)arg;
- char cdev[16];
- char dev[16];
+ char cdev[32];
+ char dev[32];
struct acpi_attach_args aaa;
int64_t sta;
#ifndef SMALL_KERNEL
int i;
#endif
- if (acpi_parsehid(node, arg, cdev, dev, 16) != 0)
+ if (acpi_parsehid(node, arg, cdev, dev, sizeof(dev)) != 0)
return (0);
if (aml_evalinteger(sc, node->parent, "_STA", 0, NULL, &sta))