projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e81de38
)
tty: pty, remove BUG_ON from pty_close
author
Jiri Slaby
<jslaby@suse.cz>
Tue, 5 Jan 2021 12:02:32 +0000
(13:02 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 7 Jan 2021 15:17:31 +0000
(16:17 +0100)
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>
drivers/tty/pty.c
patch
|
blob
|
history
diff --git
a/drivers/tty/pty.c
b/drivers/tty/pty.c
index a59f1e062bc65320ceda620e698c531d1a03163b..5e2374580e271395151039b96fd3fbf1d177e884 100644
(file)
--- 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 {