projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1f17a8
)
USB: cdc_acm: Fix race condition when opening tty
author
Henry Gebhardt
<
[email protected]
>
Wed, 4 Nov 2009 10:19:28 +0000
(11:19 +0100)
committer
Greg Kroah-Hartman
<
[email protected]
>
Wed, 18 Nov 2009 00:46:33 +0000
(16:46 -0800)
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 <
[email protected]
>
Acked-by: Oliver Neukum <
[email protected]
>
Cc: stable <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/usb/class/cdc-acm.c
patch
|
blob
|
history
diff --git
a/drivers/usb/class/cdc-acm.c
b/drivers/usb/class/cdc-acm.c
index e3861b21e776600fb721699c8ede4e62dc51f8fc..b72fa49eb257aad26d3b634ab81f6b36ad615239 100644
(file)
--- a/
drivers/usb/class/cdc-acm.c
+++ b/
drivers/usb/class/cdc-acm.c
@@
-609,9
+609,9
@@
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);
+ tasklet_schedule(&acm->urb_task);
done:
mutex_unlock(&acm->mutex);
err_out: