Catch another case where an XHCI interrupt was being
injected without state being set up. This fixes a core dump when dropping to the UEFI prompt with graphics enabled and moving the mouse around. Discussed with: Leon Dang MFC after: 3 days
This commit is contained in:
parent
17146cd543
commit
34b1e8a155
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=303349
@ -2559,7 +2559,8 @@ pci_xhci_dev_intr(struct usb_hci *hci, int epctx)
|
||||
|
||||
/* check if device is ready; OS has to initialise it */
|
||||
if (sc->rtsregs.erstba_p == NULL ||
|
||||
(sc->opregs.usbcmd & XHCI_CMD_RS) == 0)
|
||||
(sc->opregs.usbcmd & XHCI_CMD_RS) == 0 ||
|
||||
dev->dev_ctx == NULL)
|
||||
return (0);
|
||||
|
||||
p = XHCI_PORTREG_PTR(sc, hci->hci_port);
|
||||
|
Loading…
Reference in New Issue
Block a user