git: u4b/audio: Fix panic by kfree(NULL)

Aaron LI aly at crater.dragonflybsd.org
Fri Jun 14 22:22:10 PDT 2019


commit b3f5eba6f618eafe64f78e2b3ad6056d72254ab5
Author: Aaron LI <aly at aaronly.me>
Date:   Sat Jun 15 13:18:36 2019 +0800

    u4b/audio: Fix panic by kfree(NULL)
    
    DragonFly's kfree(9) doesn't allow a NULL pointer, while FreeBSD's
    free(9) allows.
    
    Reported-by: tse
    Bug-report: #3192

Summary of changes:
 sys/bus/u4b/audio/uaudio.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b3f5eba6f618eafe64f78e2b3ad6056d72254ab5


-- 
DragonFly BSD source repository



More information about the Commits mailing list