xhci: HandleTransferComplete: adjust the lower check.

after the previous commit.
This commit is contained in:
Jérôme Duval 2017-11-08 22:37:25 +01:00
parent c5ea0115b0
commit fd6ef33795

View File

@ -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?