htcleo: fix bug during PPP data usage

This commit is contained in:
LeTama 2010-08-22 10:46:59 +02:00 committed by Markinus
parent cff0e6233d
commit a49a2bde4b

View File

@ -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);