CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2020/01/18 02:00:52
Modified files:
sys/dev/usb : uhid.c
Log message:
Invalidate knote list of uhid(4) after device detach. This prevents
a crash that can happen if a uhid(4) device is detached while kqueue
still holds references to knotes that point to the device.
The invalidation has to be done after vdevgone(). This order ensures
that the file descriptors return an error or EOF when kevent(2) returns
the EOF events.
Crash reported and fix tested by Greg Steuck
OK mpi@