From: Oliver Neukum Date: Tue, 8 Sep 2009 21:51:28 +0000 (+0200) Subject: USB: fix cdc-acm regression in open X-Git-Tag: v2.6.32-rc1~174^2~135 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7af25b4b34a2439020d78da765a3bed0ff73f25c;p=profile%2Fivi%2Fkernel-x86-ivi.git USB: fix cdc-acm regression in open cdc-acm needs to set a flag during open to tell the tty layer that the device is initialized Signed-off-by: Oliver Neukum Cc: Marcel Holtmann Cc: Paul Martin Cc: stable Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index 85a1a55..e3861b2 100644 --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/class/cdc-acm.c @@ -59,6 +59,7 @@ #include #include #include +#include #include #include #include @@ -609,6 +610,7 @@ static int acm_tty_open(struct tty_struct *tty, struct file *filp) acm->throttle = 0; tasklet_schedule(&acm->urb_task); + set_bit(ASYNCB_INITIALIZED, &acm->port.flags); rv = tty_port_block_til_ready(&acm->port, tty, filp); done: mutex_unlock(&acm->mutex);