aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/tty_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/tty_io.c')
-rw-r--r--drivers/char/tty_io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c
index ddfa529936e8..edcb7e471f02 100644
--- a/drivers/char/tty_io.c
+++ b/drivers/char/tty_io.c
@@ -2838,8 +2838,8 @@ static int ptmx_open(struct inode *inode, struct file *filp)
2838 filp->private_data = tty; 2838 filp->private_data = tty;
2839 file_move(filp, &tty->tty_files); 2839 file_move(filp, &tty->tty_files);
2840 2840
2841 retval = -ENOMEM; 2841 retval = devpts_pty_new(tty->link);
2842 if (devpts_pty_new(tty->link)) 2842 if (retval)
2843 goto out1; 2843 goto out1;
2844 2844
2845 check_tty_count(tty, "ptmx_open"); 2845 check_tty_count(tty, "ptmx_open");