Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 168715
b: refs/heads/master
c: 2fa88da
h: refs/heads/master
i:
  168713: 7b43bbe
  168711: d0ab04b
v: v3
  • Loading branch information
Sarah Sharp authored and Greg Kroah-Hartman committed Nov 18, 2009
1 parent 0a05095 commit 2e79001
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d94c05e33d9212ee67b8d4998f984cc71df8168b
refs/heads/master: 2fa88daa6f299bfb83672c3b525d786ad03b4735
7 changes: 5 additions & 2 deletions trunk/drivers/usb/host/xhci-ring.c
Original file line number Diff line number Diff line change
Expand Up @@ -864,9 +864,11 @@ static struct xhci_segment *trb_in_td(
cur_seg = start_seg;

do {
if (start_dma == 0)
return 0;
/* We may get an event for a Link TRB in the middle of a TD */
end_seg_dma = xhci_trb_virt_to_dma(cur_seg,
&start_seg->trbs[TRBS_PER_SEGMENT - 1]);
&cur_seg->trbs[TRBS_PER_SEGMENT - 1]);
/* If the end TRB isn't in this segment, this is set to 0 */
end_trb_dma = xhci_trb_virt_to_dma(cur_seg, end_trb);

Expand All @@ -893,8 +895,9 @@ static struct xhci_segment *trb_in_td(
}
cur_seg = cur_seg->next;
start_dma = xhci_trb_virt_to_dma(cur_seg, &cur_seg->trbs[0]);
} while (1);
} while (cur_seg != start_seg);

return 0;
}

/*
Expand Down

0 comments on commit 2e79001

Please sign in to comment.