Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 30e6dcab authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "tty: cancel delayed work before ldisc and disc_data become NULL"

parents 3ebd78d9 9dfbba8b
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -617,6 +617,12 @@ static void tty_ldisc_kill(struct tty_struct *tty)
{
	if (!tty->ldisc)
		return;

#if defined(CONFIG_TTY_FLUSH_LOCAL_ECHO)
	if (tty->echo_delayed_work.work.func)
		cancel_delayed_work_sync(&tty->echo_delayed_work);
#endif

	/*
	 * Now kill off the ldisc
	 */