[haiku-commits] haiku: hrev51535 - src/add-ons/kernel/busses/usb

  • From: kallisti5@xxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 8 Nov 2017 22:14:04 +0100 (CET)

hrev51535 adds 1 changeset to branch 'master'
old head: e3441678243c79b7816142eeae3e4456c29c278b
new head: c5ea0115b0c2bd8a2726f47443b71b5c5e446079
overview: 
http://cgit.haiku-os.org/haiku/log/?qt=range&q=c5ea0115b0c2+%5Ee3441678243c

----------------------------------------------------------------------------

c5ea0115b0c2: xhci: Fix incorrect TRB offset; solves #13343
  
  * The incorrect offset would result in semaphores timing out
  
  Signed-off-by: Alexander von Gluck IV <kallisti5@xxxxxxxxxxx>

                                         [ Greg Crain <gcrain70@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev51535
Commit:      c5ea0115b0c2bd8a2726f47443b71b5c5e446079
URL:         http://cgit.haiku-os.org/haiku/commit/?id=c5ea0115b0c2
Author:      Greg Crain <gcrain70@xxxxxxxxx>
Date:        Wed Nov  8 21:11:40 2017 UTC
Committer:   Alexander von Gluck IV <kallisti5@xxxxxxxxxxx>
Commit-Date: Wed Nov  8 21:13:20 2017 UTC

Ticket:      https://dev.haiku-os.org/ticket/13343

----------------------------------------------------------------------------

1 file changed, 1 insertion(+), 1 deletion(-)
src/add-ons/kernel/busses/usb/xhci.cpp | 2 +-

----------------------------------------------------------------------------

diff --git a/src/add-ons/kernel/busses/usb/xhci.cpp 
b/src/add-ons/kernel/busses/usb/xhci.cpp
index 5babbd1..f50993e 100644
--- a/src/add-ons/kernel/busses/usb/xhci.cpp
+++ b/src/add-ons/kernel/busses/usb/xhci.cpp
@@ -2065,7 +2065,7 @@ XHCI::HandleTransferComplete(xhci_trb* trb)
                        int64 offset = source - td_chain->this_phy;
                        TRACE("HandleTransferComplete td %p offset %" B_PRId64 
" %"
                                B_PRIxADDR "\n", td_chain, offset, source);
-                       offset = offset / sizeof(xhci_trb);
+                       offset = offset / sizeof(xhci_trb) + 1;
                        if (offset <= td_chain->trb_count && offset >= 0) {
                                TRACE("HandleTransferComplete td %p trb %" 
B_PRId64 " found "
                                        "\n", td_chain, offset);


Other related posts:

  • » [haiku-commits] haiku: hrev51535 - src/add-ons/kernel/busses/usb - kallisti5