X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=drivers%2Ftty%2Fpty.c;fp=drivers%2Ftty%2Fpty.c;h=e72ee629cead1b0af93c54b96395cbfc98b69975;hb=d2b6f44779d3be22d32a5697bd30b59367fd2b33;hp=0e273158edacc8d115d1247733d956fcfa9ed6a3;hpb=1d1d14da12e79a6c05fbe1a975401f0f56c93316;p=firefly-linux-kernel-4.4.55.git diff --git a/drivers/tty/pty.c b/drivers/tty/pty.c index 0e273158edac..e72ee629cead 100644 --- a/drivers/tty/pty.c +++ b/drivers/tty/pty.c @@ -395,6 +395,7 @@ static int pty_common_install(struct tty_driver *driver, struct tty_struct *tty, goto err_put_module; tty_set_lock_subclass(o_tty); + lockdep_set_subclass(&o_tty->termios_rwsem, TTY_LOCK_SLAVE); if (legacy) { /* We always use new tty termios data so we can do this