fix segfault while connecting/disconnecting usb device
Authored by: schoenera 2017-03-29
Parent: [r222]
Child: [r224]