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

看板DFBSD_commit作者時間15年前 (2011/03/27 19:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit d2f2ef3a8fdb729f771e0512efa0b61b4b2287d3 Author: Magliano Andrea <masterblaster@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
文章代碼(AID): #1DZnZ_eA (DFBSD_commit)