diff options
author | Jordan Hargrave <jordan@cvs.openbsd.org> | 2011-06-02 19:26:36 +0000 |
---|---|---|
committer | Jordan Hargrave <jordan@cvs.openbsd.org> | 2011-06-02 19:26:36 +0000 |
commit | 9833f44704a63014209f467af81f118011f0d3dd (patch) | |
tree | d11e960518d0fff6277932c0efb13a99c5be4183 /sys/dev/acpi/dsdt.c | |
parent | 476808bbe2d5fddd50ac715de2738c1726a5e2a0 (diff) |
Fix index for Mid() opcode
Diffstat (limited to 'sys/dev/acpi/dsdt.c')
-rw-r--r-- | sys/dev/acpi/dsdt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpi/dsdt.c b/sys/dev/acpi/dsdt.c index fabe5e77711..6ef46f0c7be 100644 --- a/sys/dev/acpi/dsdt.c +++ b/sys/dev/acpi/dsdt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dsdt.c,v 1.186 2011/06/02 17:15:53 jordan Exp $ */ +/* $OpenBSD: dsdt.c,v 1.187 2011/06/02 19:26:35 jordan Exp $ */ /* * Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org> * @@ -2166,7 +2166,7 @@ struct aml_value * aml_mid(struct aml_value *src, int index, int length) { if (index > src->length) - index = 0; + index = src->length; if ((index + length) > src->length) length = src->length - index; return aml_allocvalue(src->type, length, src->v_buffer + index); |