Serialize synchronous commands with a rwlock.
authormpi <mpi@openbsd.org>
Wed, 5 Sep 2018 14:03:28 +0000 (14:03 +0000)
committermpi <mpi@openbsd.org>
Wed, 5 Sep 2018 14:03:28 +0000 (14:03 +0000)
commiteeefa84584e2df2706734f2ec312e6f127149f59
tree4ca5b2ec7a2917fd909fd47f2544851c97cb00d9
parent2e0b0231a73449efb969ce31651e3d84d1ab1cad
Serialize synchronous commands with a rwlock.

Prevent triggering an assert if two drivers try to submit a command
at the same time.

Issue reported by Tom Murphy.
sys/dev/usb/xhci.c
sys/dev/usb/xhcivar.h