git: kernel - Fix sysclock_t comparison in usched code

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Oct 13 10:12:42 PDT 2012


commit 68a23beee83b69821e0e19230f87377e37dead9c
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Oct 13 10:11:43 2012 -0700

    kernel - Fix sysclock_t comparison in usched code
    
    * Fix a sysclock_t comparison that was attempting to detect an overflow
      by checking if an unsigned field was negative.  The field has
      to be cast to signed for the test to work as expected.
    
    Reported-by: enjolras

Summary of changes:
 sys/kern/usched_bsd4.c |    2 +-
 sys/kern/usched_dfly.c |    2 +-
 sys/sys/systimer.h     |    1 +
 3 files changed, 3 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/68a23beee83b69821e0e19230f87377e37dead9c


-- 
DragonFly BSD source repository



More information about the Commits mailing list