aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/pty.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/pty.c')
-rw-r--r--drivers/tty/pty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/pty.c b/drivers/tty/pty.c
index a82b39939a9c..65f767154d12 100644
--- a/drivers/tty/pty.c
+++ b/drivers/tty/pty.c
@@ -547,7 +547,7 @@ static struct tty_struct *pts_unix98_lookup(struct tty_driver *driver,
547 struct tty_struct *tty; 547 struct tty_struct *tty;
548 548
549 mutex_lock(&devpts_mutex); 549 mutex_lock(&devpts_mutex);
550 tty = devpts_get_tty(pts_inode, idx); 550 tty = devpts_get_priv(pts_inode);
551 mutex_unlock(&devpts_mutex); 551 mutex_unlock(&devpts_mutex);
552 /* Master must be open before slave */ 552 /* Master must be open before slave */
553 if (!tty) 553 if (!tty)