tty: Preset lock subclass for nested tty locks
[firefly-linux-kernel-4.4.55.git] / drivers / tty / pty.c
index bdb8fd1a202682e6e0eaf057c3cc88685c6ebc03..11db7dc8676b6d493cbf1acfd35039a730f8205b 100644 (file)
@@ -399,6 +399,8 @@ static int pty_common_install(struct tty_driver *driver, struct tty_struct *tty,
        if (!o_tty)
                goto err_put_module;
 
+       tty_set_lock_subclass(o_tty);
+
        if (legacy) {
                /* We always use new tty termios data so we can do this
                   the easy way .. */