Prevent a NULL-pointer dereference when closing a ugen(4) node
authormpi <mpi@openbsd.org>
Tue, 13 Oct 2015 20:57:46 +0000 (20:57 +0000)
committermpi <mpi@openbsd.org>
Tue, 13 Oct 2015 20:57:46 +0000 (20:57 +0000)
commit554f81f3187e979f649bc202442c75a4d407ee69
tree2078bff58f4c37ea7d67b36a6facf047285efe18
parentfdea90f0d9907699249421985942964b14ee5d61
Prevent a NULL-pointer dereference when closing a ugen(4) node
in case the kernel failed to change the interface of a device.

Found the hardway by okan
sys/dev/usb/ugen.c