[RHEL8,COMMIT] ve/tty: drop redundant assert for tty_mutex in vtty_release_init()

Submitted by Konstantin Khorenko on April 8, 2019, 1 p.m.

Details

Message ID 201904081252.x38CqD5I029898@finist_el8beta.work.ct
State New
Headers show

Patch hide | download patch | download mbox

diff --git a/drivers/tty/pty.c b/drivers/tty/pty.c
index 8ec60e131b69..75633be9e412 100644
--- a/drivers/tty/pty.c
+++ b/drivers/tty/pty.c
@@ -1292,7 +1292,6 @@  struct tty_driver *vtty_driver(dev_t dev, int *index)
 void vtty_release_init(struct tty_struct *tty, struct tty_struct *o_tty)
 {
 	int pty_master, tty_closing, o_tty_closing;
-	lockdep_assert_held(&tty_mutex);
 
 	if (tty->driver != vttym_driver &&
 	    tty->driver != vttys_driver)