]> asedeno.scripts.mit.edu Git - linux.git/commit
tty: fix read of tty->pgrp outside of ctrl_lock
authorDavid Emett <dave@sp4m.net>
Sun, 10 Mar 2019 21:43:47 +0000 (21:43 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Mar 2019 16:28:23 +0000 (01:28 +0900)
commitcf90c06f8115016fa4a94644a26a4ba093f0055e
treef04dd71ce7cc87167823a6333b31220a1805c9df
parent3adf2aa8af2d5122917b78988de9cdeb828cdd9d
tty: fix read of tty->pgrp outside of ctrl_lock

The intention was clearly to use the tty_pgrp local variable rather than
re-read tty->pgrp outside of ctrl_lock, so do that.

This bug was introduced by commit 2812d9e9fd94 ("tty: Combine
SIGTTOU/SIGTTIN handling").

Signed-off-by: David Emett <dave@sp4m.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_jobctrl.c