usb: mdm6600: Remove urbs from in_flight list on completion
authorBenoit Goby <benoit@android.com>
Tue, 7 Sep 2010 22:50:52 +0000 (15:50 -0700)
committerColin Cross <ccross@android.com>
Wed, 6 Oct 2010 23:51:12 +0000 (16:51 -0700)
This fixes an issue where uncompleted urbs get added to the pending
anchor.

Change-Id: I9504fea0ca42e9d18dfe255744ba8f6638e1f324
Signed-off-by: Benoit Goby <benoit@android.com>
drivers/usb/serial/mdm6600.c

index 21e740478b9d704be33c8884b3268727ca774b96..63a2e02322650224a51b589eda8c85eaad51076a 100644 (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);