|
@@ -727,6 +727,7 @@ static void st_tty_close(struct tty_struct *tty)
|
|
if (st_gdata->is_registered[i] == true)
|
|
if (st_gdata->is_registered[i] == true)
|
|
pr_err("%d not un-registered", i);
|
|
pr_err("%d not un-registered", i);
|
|
st_gdata->list[i] = NULL;
|
|
st_gdata->list[i] = NULL;
|
|
|
|
+ st_gdata->is_registered[i] = false;
|
|
}
|
|
}
|
|
st_gdata->protos_registered = 0;
|
|
st_gdata->protos_registered = 0;
|
|
spin_unlock_irqrestore(&st_gdata->lock, flags);
|
|
spin_unlock_irqrestore(&st_gdata->lock, flags);
|