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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/tty/pty.c b/drivers/tty/pty.c
index a9d256d6e909..6e1f1505f04e 100644
--- a/drivers/tty/pty.c
+++ b/drivers/tty/pty.c
@@ -210,6 +210,9 @@ static int pty_signal(struct tty_struct *tty, int sig)
210{ 210{
211 struct pid *pgrp; 211 struct pid *pgrp;
212 212
213 if (sig != SIGINT && sig != SIGQUIT && sig != SIGTSTP)
214 return -EINVAL;
215
213 if (tty->link) { 216 if (tty->link) {
214 pgrp = tty_get_pgrp(tty->link); 217 pgrp = tty_get_pgrp(tty->link);
215 if (pgrp) 218 if (pgrp)