if the field is bigger. Fixes crashes seen on HP bc2500 blades with MP
kernels.
ok kettenis@
-/* $OpenBSD: dsdt.c,v 1.216 2015/03/16 20:31:46 deraadt Exp $ */
+/* $OpenBSD: dsdt.c,v 1.217 2015/05/04 10:42:06 jmatthew Exp $ */
/*
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
*
} else {
/* Write to a large field.. create or convert buffer */
val = aml_convert(val, AML_OBJTYPE_BUFFER, -1);
+
+ if (blen > (val->length << 3))
+ blen = val->length << 3;
}
vbit = val->v_buffer;
} else {