From f59101231a5513bfa12149504f3ba26323962332 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sun, 24 May 2020 02:43:21 +0200 Subject: [PATCH] usbehci: release ctlr ilock before calling pollcheck() --- sys/src/9/port/usbehci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/src/9/port/usbehci.c b/sys/src/9/port/usbehci.c index 5ac7486cf..6b1c9f12e 100644 --- a/sys/src/9/port/usbehci.c +++ b/sys/src/9/port/usbehci.c @@ -2327,9 +2327,11 @@ epiowait(Hci *hp, Qio *io, int tmout, ulong load) if(qh->state == Qrun){ ctlrinterrupt(ctlr); if(qh->state == Qdone){ + iunlock(ctlr); dqprint("ehci %#p: polling required\n", ctlr->capio); ctlr->poll.must = 1; pollcheck(hp); + ilock(ctlr); } }