git: kernel - Fix usb crash on detach

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Feb 3 11:15:48 PST 2020


commit 493442f33072577ac2c950ab2c10db71b5e798a8
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Feb 3 11:15:03 2020 -0800

    kernel - Fix usb crash on detach
    
    * Sometimes a bad usb link can flicker off before the usb bus is able
      to finish attaching it, resulting in an attempt to kfree() a NULL
      pointer.  Check for NULL.

Summary of changes:
 sys/bus/u4b/input/ums.c    |  1 +
 sys/dev/misc/evdev/evdev.c | 10 ++++------
 2 files changed, 5 insertions(+), 6 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/493442f33072577ac2c950ab2c10db71b5e798a8


-- 
DragonFly BSD source repository



More information about the Commits mailing list