git: elcr: Initialize variable before calling TUNABLE_INT_FETCH()

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Wed Apr 13 06:36:26 PDT 2011


commit 0c04660046223681ae1e6dfb7cab4f73e84c66a6
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Wed Apr 13 21:28:14 2011 +0800

    elcr: Initialize variable before calling TUNABLE_INT_FETCH()
    
    If the tunable is not defined, the variable will not be initailized at all,
    which causes random ELCR probing failure.

Summary of changes:
 sys/platform/pc32/icu/elcr.c |    2 +-
 sys/platform/pc64/icu/elcr.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0c04660046223681ae1e6dfb7cab4f73e84c66a6


-- 
DragonFly BSD source repository





More information about the Commits mailing list