Skip to content

Commit cb15a8d

Browse files
cyberknight777karthik558
authored andcommitted
drivers/tty: Fixed regression in IRQ
These 2 lines were removed by upstream but it was added back in this particular commit: 49eec58 . Without this fix there will be a memory leak which causes phone to freeze and reboot when su is called by userspace for any usage. This can also cause opening terminal emulators notably termux to freeze and reboot the phone. Signed-off-by: Cyber Knight <cyberknight755@gmail.com> Signed-off-by: K A R T H I K <karthik.lal558@gmail.com>
1 parent dcb7577 commit cb15a8d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/tty/tty_jobctrl.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,10 +501,8 @@ static int tiocspgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t
501501
if (session_of_pgrp(pgrp) != task_session(current))
502502
goto out_unlock;
503503
retval = 0;
504-
spin_lock_irq(&real_tty->ctrl_lock);
505504
put_pid(real_tty->pgrp);
506505
real_tty->pgrp = get_pid(pgrp);
507-
spin_unlock_irq(&real_tty->ctrl_lock);
508506
out_unlock:
509507
rcu_read_unlock();
510508
out_unlock_ctrl:

0 commit comments

Comments
 (0)