From fd6ef33795c1c3a32975a300ee024117cb7f3f15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Wed, 8 Nov 2017 22:37:25 +0100 Subject: [PATCH] xhci: HandleTransferComplete: adjust the lower check. after the previous commit. --- src/add-ons/kernel/busses/usb/xhci.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/kernel/busses/usb/xhci.cpp b/src/add-ons/kernel/busses/usb/xhci.cpp index f50993e1e3..5613f943b6 100644 --- a/src/add-ons/kernel/busses/usb/xhci.cpp +++ b/src/add-ons/kernel/busses/usb/xhci.cpp @@ -2066,7 +2066,7 @@ XHCI::HandleTransferComplete(xhci_trb* trb) TRACE("HandleTransferComplete td %p offset %" B_PRId64 " %" B_PRIxADDR "\n", td_chain, offset, source); offset = offset / sizeof(xhci_trb) + 1; - if (offset <= td_chain->trb_count && offset >= 0) { + if (offset <= td_chain->trb_count && offset >= 1) { TRACE("HandleTransferComplete td %p trb %" B_PRId64 " found " "\n", td_chain, offset); // is it the last trb?