usb: mdm6600: Remove urbs from in_flight list on completion

This fixes an issue where uncompleted urbs get added to the pending
anchor.

Change-Id: I9504fea0ca42e9d18dfe255744ba8f6638e1f324
Signed-off-by: Benoit Goby <benoit@android.com>
This commit is contained in:
Benoit Goby
2010-09-07 15:50:52 -07:00
committed by Colin Cross
parent c30aa47b8e
commit cf853d9c88

View File

@@ -602,6 +602,9 @@ static void mdm6600_read_bulk_cb(struct urb *u)
return;
}
/* remove urb from in_flight list */
usb_unanchor_urb(u);
/* process urb in bottom half */
usb_anchor_urb(u, &modem->read.pending);
schedule_work(&modem->read.work);