When writing a value to a field, don't read past the end of the source value
authorjmatthew <jmatthew@openbsd.org>
Mon, 4 May 2015 10:42:06 +0000 (10:42 +0000)
committerjmatthew <jmatthew@openbsd.org>
Mon, 4 May 2015 10:42:06 +0000 (10:42 +0000)
commitcf9fd8d1b1efa803a7f24f11567806980e250cea
tree3bf4598b71e7bc13ea291d74b9824471c0ae5d8d
parent765f8bef7366424486acfd56c916f052867dc2c3
When writing a value to a field, don't read past the end of the source value
if the field is bigger.  Fixes crashes seen on HP bc2500 blades with MP
kernels.

ok kettenis@
sys/dev/acpi/dsdt.c