git: kern: Clean error paths in kern_execve()

Aaron LI aly at crater.dragonflybsd.org
Sat Feb 20 06:49:38 PST 2021


commit 274a4bc4e8ac52aa4f80f19386c0b78271075176
Author: Aaron LI <aly at aaronly.me>
Date:   Wed Feb 17 20:02:58 2021 +0800

    kern: Clean error paths in kern_execve()
    
    Merge the original 'exec_fail_dealloc' and 'exec_fail' to a single
    'failed' error path.  In addition, introduce the 'nch' variable to
    clean some expressions a bit.  These will help the following fexecve()
    implementation.
    
    While there, adjust the styles a bit.
    
    Reviewed-by: dillon

Summary of changes:
 sys/kern/kern_exec.c | 86 +++++++++++++++++++++++++---------------------------
 1 file changed, 41 insertions(+), 45 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/274a4bc4e8ac52aa4f80f19386c0b78271075176


-- 
DragonFly BSD source repository


More information about the Commits mailing list