git: Don't leave Value32 uinitialized (as it's not completely filled)

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Sun Mar 27 03:47:03 PDT 2011


commit d2f2ef3a8fdb729f771e0512efa0b61b4b2287d3
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_[12] is virtually screwed up.

Summary of changes:
 sys/contrib/dev/acpica-unix/executer/exregion.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d2f2ef3a8fdb729f771e0512efa0b61b4b2287d3


-- 
DragonFly BSD source repository





More information about the Commits mailing list