Commit ab6aa6cd authored by Johannes Erdfelt's avatar Johannes Erdfelt Committed by Greg Kroah-Hartman

USB UHCI driver

The patch ensures that uhci.c doesn't use urb->status after the
completion callback if it doesn't need to.
parent 68b47b98
......@@ -2370,15 +2370,15 @@ static void uhci_call_completion(struct urb *urb)
urb->dev = NULL;
spin_unlock_irqrestore(&urb->lock, flags);
if (urb->complete) {
if (urb->complete)
urb->complete(urb);
if (resubmit_interrupt)
/* Recheck the status. The completion handler may have */
/* unlinked the resubmitting interrupt URB */
killed = (urb->status == -ENOENT ||
urb->status == -ECONNABORTED ||
urb->status == -ECONNRESET);
}
if (resubmit_interrupt && !killed) {
urb->dev = dev;
......
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