]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
USB: fix cdc-acm resume()
authorOliver Neukum <oliver@neukum.org>
Tue, 17 Jun 2008 20:30:48 +0000 (22:30 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 4 Jul 2008 01:20:36 +0000 (18:20 -0700)
cdc-acm has
- a memory leak in resume()
- will fail to reactivate the read code path if this is needed.
his corrects it by deleting the useless relict code.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/class/cdc-acm.c

index 63c34043b4d91e0bfb2864672704be838f518fef..c3201affa0b6f99c17ff6d28c71e3cd08adb58c6 100644 (file)
@@ -1125,9 +1125,6 @@ static void stop_data_traffic(struct acm *acm)
        for (i = 0; i < acm->rx_buflimit; i++)
                usb_kill_urb(acm->ru[i].urb);
 
-       INIT_LIST_HEAD(&acm->filled_read_bufs);
-       INIT_LIST_HEAD(&acm->spare_read_bufs);
-
        tasklet_enable(&acm->urb_task);
 
        cancel_work_sync(&acm->work);