mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 13:27:06 +09:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user