USB: cdc_acm: Fix race condition when opening tty
authorHenry Gebhardt <gebhardt@astro.uni-tuebingen.de>
Wed, 4 Nov 2009 10:19:28 +0000 (11:19 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 18 Nov 2009 00:46:33 +0000 (16:46 -0800)
commit18a77b5d237a67d2c621a46f5271a3b51da1b380
treec3b359ae9c655a65ab96e68205fd8d5bf4c6bddb
parenta1f17a872bc7b1cb7efdd5486a2963e88a536e61
USB: cdc_acm: Fix race condition when opening tty

If acm_rx_tasklet() gets called before tty_port_block_til_ready()
returns, then bulk IN urbs may not be sent. This fixes it.

Signed-off-by: Henry Gebhardt <gebhardt@astro.uni-tuebingen.de>
Acked-by: Oliver Neukum <oliver@neukum.org>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/class/cdc-acm.c