From: Oliver Neukum Date: Tue, 17 Jun 2008 20:30:48 +0000 (+0200) Subject: USB: fix cdc-acm resume() X-Git-Tag: 2.1b_release~18327^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4b828abed217527ca815727a1a251334bd8e5e04;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git USB: fix cdc-acm resume() 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index 63c3404..c3201aff 100644 --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/class/cdc-acm.c @@ -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);