htcleo: fix bug during PPP data usage
This commit is contained in:
parent
cff0e6233d
commit
a49a2bde4b
@ -149,10 +149,10 @@ static int smd_tty_open(struct tty_struct *tty, struct file *f)
|
||||
info = smd_tty + n;
|
||||
|
||||
mutex_lock(&smd_tty_lock);
|
||||
wake_lock_init(&info->wake_lock, WAKE_LOCK_SUSPEND, name);
|
||||
tty->driver_data = info;
|
||||
|
||||
if (info->open_count++ == 0) {
|
||||
wake_lock_init(&info->wake_lock, WAKE_LOCK_SUSPEND, name);
|
||||
info->tty = tty;
|
||||
if (info->ch) {
|
||||
smd_kick(info->ch);
|
||||
|
Loading…
Reference in New Issue
Block a user