Commit aa5cbbec authored by Felipe Balbi's avatar Felipe Balbi Committed by Greg Kroah-Hartman

usb: musb: fix bug in musb_schedule

This bug was introduced recently. Fix it before bigger
problems appear.
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@nokia.com>
Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent b09bc6cb
...@@ -1757,7 +1757,7 @@ static int musb_schedule( ...@@ -1757,7 +1757,7 @@ static int musb_schedule(
} }
} }
/* use bulk reserved ep1 if no other ep is free */ /* use bulk reserved ep1 if no other ep is free */
if (best_end > 0 && qh->type == USB_ENDPOINT_XFER_BULK) { if (best_end < 0 && qh->type == USB_ENDPOINT_XFER_BULK) {
hw_ep = musb->bulk_ep; hw_ep = musb->bulk_ep;
if (is_in) if (is_in)
head = &musb->in_bulk; head = &musb->in_bulk;
......
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