K 10 svn:author V 7 git2svn K 8 svn:date V 27 2021-11-02T08:45:21.698465Z K 7 svn:log V 646 usb(4): Fix for use after free in combination with EVDEV_SUPPORT. When EVDEV_SUPPORT was introduced, the USB transfers may be running after the main FIFO is closed. In connection to this a race may appear which can lead to use-after-free scenarios. Fix this for all FIFO consumers by initializing and resetting the FIFO queues under the lock used by the client. Then the client driver will see an empty queue in all cases a race may appear. Found by: pho@ Sponsored by: NVIDIA Networking (cherry picked from commit aad0c65d6b37364d8ba92ecb8c85e004398a5194) Git Hash: bb9bee1ffbb27f903bfd2c11d681d331bea727ea Git Author: hselasky@FreeBSD.org END