Commit b015fe38 authored by Dan Streetman's avatar Dan Streetman Committed by Greg Kroah-Hartman

[PATCH] uhci: remove qh from qh->list

I think the qh needs to be removed from its qh->list, or else
uhci_remove_qh will incorrectly change the previous endpoint's qh->link,
undoing what was just done in uhci_delete_queued_urb.
parent f9fdd6e5
...@@ -622,6 +622,7 @@ static void uhci_delete_queued_urb(struct uhci_hcd *uhci, struct urb *urb) ...@@ -622,6 +622,7 @@ static void uhci_delete_queued_urb(struct uhci_hcd *uhci, struct urb *urb)
pqh->link = cpu_to_le32(nurbp->qh->dma_handle) | UHCI_PTR_QH; pqh->link = cpu_to_le32(nurbp->qh->dma_handle) | UHCI_PTR_QH;
list_add_tail(&nurbp->qh->list, &urbp->qh->list); list_add_tail(&nurbp->qh->list, &urbp->qh->list);
list_del_init(&urbp->qh->list);
} else { } else {
/* We're somewhere in the middle (or end). A bit trickier */ /* We're somewhere in the middle (or end). A bit trickier */
/* than the head scenario */ /* than the head scenario */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment