https://git.reactos.org/?p=reactos.git;a=commitdiff;h=5f4cf8a716ab50d47fc46…
commit 5f4cf8a716ab50d47fc4686b5667165db39c6b56
Author: Victor Perevertkin <victor(a)perevertkin.ru>
AuthorDate: Mon Apr 1 04:00:52 2019 +0300
Commit: Victor Perevertkin <victor(a)perevertkin.ru>
CommitDate: Mon Apr 8 12:05:17 2019 +0300
[USBHID] Do not assert if the device was unplugged during an operation.
---
drivers/hid/hidusb/hidusb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hid/hidusb/hidusb.c b/drivers/hid/hidusb/hidusb.c
index 6cd930148f..799dfd2485 100644
--- a/drivers/hid/hidusb/hidusb.c
+++ b/drivers/hid/hidusb/hidusb.c
@@ -453,7 +453,7 @@ HidUsb_ReadReportCompletion(
//
// FIXME handle error
//
- ASSERT(Urb->UrbHeader.Status == USBD_STATUS_SUCCESS);
+ ASSERT(Urb->UrbHeader.Status == USBD_STATUS_SUCCESS ||
Urb->UrbHeader.Status == USBD_STATUS_DEVICE_GONE);
//
// free the urb