git: kernel/bus: Avoid panic on NULL passed to kfree().

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Sun Jan 21 11:06:50 PST 2018


commit c669d212c00adac759a0b97aa633f792e3daf20b
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Sun Jan 21 17:56:58 2018 +0200

    kernel/bus: Avoid panic on NULL passed to kfree().
    
    Our kfree() will issue panic() on NULL pointer.
    
    Caught-by: gcc80 -Wnonnull

Summary of changes:
 sys/kern/subr_bus.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list