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

Commit 3380ed2c authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "tty: Fix race between tty release and echo_delayed_work"

parents 1b50ddac dab446f3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1663,6 +1663,10 @@ static void release_one_tty(struct work_struct *work)

	put_pid(tty->pgrp);
	put_pid(tty->session);
#if defined(CONFIG_TTY_FLUSH_LOCAL_ECHO)
	if (tty->echo_delayed_work.work.func)
		cancel_delayed_work_sync(&tty->echo_delayed_work);
#endif
	free_tty_struct(tty);
}