Revert "USB: class: CDC-ACM: fix race between get_serial and set_serial"
This reverts commit a2fa99d5cc
.
This commit is contained in:
parent
6781466fba
commit
7123f057e3
1 changed files with 0 additions and 2 deletions
|
@ -942,12 +942,10 @@ static int get_serial_info(struct tty_struct *tty, struct serial_struct *ss)
|
|||
struct acm *acm = tty->driver_data;
|
||||
|
||||
ss->line = acm->minor;
|
||||
mutex_lock(&acm->port.mutex);
|
||||
ss->close_delay = jiffies_to_msecs(acm->port.close_delay) / 10;
|
||||
ss->closing_wait = acm->port.closing_wait == ASYNC_CLOSING_WAIT_NONE ?
|
||||
ASYNC_CLOSING_WAIT_NONE :
|
||||
jiffies_to_msecs(acm->port.closing_wait) / 10;
|
||||
mutex_unlock(&acm->port.mutex);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue