diff options
author | Jordan Hargrave <jordan@cvs.openbsd.org> | 2009-04-10 16:05:11 +0000 |
---|---|---|
committer | Jordan Hargrave <jordan@cvs.openbsd.org> | 2009-04-10 16:05:11 +0000 |
commit | 2abd8088203a94e8c702a1334365d88b518d0bf1 (patch) | |
tree | 180cceb635102b341012bed8f43fe6f1c16973e9 /sys/dev/acpi/dsdt.c | |
parent | df62b489778e826707f1061b9c2c9add99d9d7af (diff) |
Fix for PR6099, read/write of non-byte aligned IndexField
ok marco@
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 de9fa55e5d6..5cac72d2e09 100644 --- a/sys/dev/acpi/dsdt.c +++ b/sys/dev/acpi/dsdt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dsdt.c,v 1.145 2009/04/10 03:32:24 marco Exp $ */ +/* $OpenBSD: dsdt.c,v 1.146 2009/04/10 16:05:10 jordan Exp $ */ /* * Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org> * @@ -2481,7 +2481,7 @@ aml_rwfield(struct aml_value *fld, int bpos, int blen, struct aml_value *val, in aml_rwgas(ref1, fld->v_field.bitpos, fld->v_field.bitlen, val, mode, fld->v_field.flags); } else if (fld->v_field.type == AMLOP_FIELD) { - aml_rwgas(ref1, fld->v_field.bitpos, fld->v_field.bitlen, val, mode, fld->v_field.flags); + aml_rwgas(ref1, fld->v_field.bitpos+bpos, blen, val, mode, fld->v_field.flags); } else if (mode == ACPI_IOREAD) { /* bufferfield:read */ |