DragonFly BSD
DragonFly commits List (threaded) for 2012-10
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: kernel - Fix sysclock_t comparison in usched code


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 13 Oct 2012 10:12:42 -0700 (PDT)

commit 68a23beee83b69821e0e19230f87377e37dead9c
Author: Matthew Dillon <dillon@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]