diff options
author | Jiri Slaby <jslaby@suse.cz> | 2021-01-05 13:02:32 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-01-07 16:17:31 +0100 |
commit | 9bc1b2b9b848e9334ab1268fb4dc35a68b70022f (patch) | |
tree | 670f022982d1ded5ce26e579d59932dc9004d7b4 /drivers/tty | |
parent | vt: keyboard, defkeymap.c_shipped, approach the unicode table (diff) | |
download | linux-9bc1b2b9b848e9334ab1268fb4dc35a68b70022f.tar.xz linux-9bc1b2b9b848e9334ab1268fb4dc35a68b70022f.zip |
tty: pty, remove BUG_ON from pty_close
tty->ops->close is always called with a valid tty, so the BUG_ON cannot
trigger.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210105120239.28031-5-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/pty.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/tty/pty.c b/drivers/tty/pty.c index a59f1e062bc6..5e2374580e27 100644 --- a/drivers/tty/pty.c +++ b/drivers/tty/pty.c @@ -45,7 +45,6 @@ static DEFINE_MUTEX(devpts_mutex); static void pty_close(struct tty_struct *tty, struct file *filp) { - BUG_ON(!tty); if (tty->driver->subtype == PTY_TYPE_MASTER) WARN_ON(tty->count > 1); else { |