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

git: DragonFly_RELEASE_3_2 kernel - Fix sysclock_t comparison in usched code


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

commit 0d69564327be7be4b29317512725892bcf0204e5
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/0d69564327be7be4b29317512725892bcf0204e5


-- 
DragonFly BSD source repository



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