usbehci: release ctlr ilock before calling pollcheck()

This commit is contained in:
cinap_lenrek 2020-05-24 02:43:21 +02:00
parent 9b28790494
commit f59101231a

View file

@ -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);
}
}