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

Skip to content
Commit 92322b6f authored by Chandana Kishori Chiluveru's avatar Chandana Kishori Chiluveru
Browse files

tty: Fix possible NULL pointer dereference



During processing of echo characters on terminal device,
n_tty_close can happen in parallel with fault inject
testing method and result in a NULL pointer dereference.

Fix this by validating the tty->disc_data inside
continue_process_echoes() and cancel delayed work before
disc_data become NULL.

Change-Id: I4d24a87f2943653b334251c53cdec1c7252a6099
Signed-off-by: default avatarChandana Kishori Chiluveru <cchiluve@codeaurora.org>
parent 9a711d9c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment