git: Don't leave Value32 uinitialized (as it's not completely filled)
sephe at crater.dragonflybsd.org
Sun Mar 27 03:47:03 PDT 2011
Author: Magliano Andrea <masterblaster at tiscali.it>
Date: Tue Mar 1 08:42:05 2011 +0100
Don't leave Value32 uinitialized (as it's not completely filled)
OsdHardware.c:AcpiOsReadPort() casts Value to (u_int8_t *) resp.
(u_int16_t *) when assigning, thus leaving the upper region of Value32
untouched. If Value32 isn't initialized, random data remains trashing
the whole value.
Without this every bus_space_read_ is virtually screwed up.
Summary of changes:
sys/contrib/dev/acpica-unix/executer/exregion.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
DragonFly BSD source repository
More information about the Commits