git: kthread_create - fix varargs bug

Alex Hornung alexh at crater.dragonflybsd.org
Fri Feb 24 13:35:19 PST 2012


commit 70c5c55f6221272a55367e02c3ec30913ae8393a
Author: Alex Hornung <ahornung at gmail.com>
Date:   Fri Feb 24 21:13:19 2012 +0000

    kthread_create - fix varargs bug
    
     * varargs in _kthread_create were handed the formatter but not the
       va_list, leading to all sorts of unexpected behaviour.
    
     * Set up the va_list in the callers of _kthread_create and pass it in
       when calling.
    
    Points-finger-at: tuxillo
    Reported-by: Markus Pfeiffer, Sascha Wildner, Myself

Summary of changes:
 sys/kern/kern_kthread.c |   23 +++++++++++++++++------
 1 files changed, 17 insertions(+), 6 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/70c5c55f6221272a55367e02c3ec30913ae8393a


-- 
DragonFly BSD source repository





More information about the Commits mailing list