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

Skip to content
Commit 9dfbba8b authored by Murali Nalajala's avatar Murali Nalajala
Browse files

tty: cancel delayed work before ldisc and disc_data become NULL



tty->ldisc and tty->disc_data become NULL before worker get
schedule to process the flushing echo buffer with small delays.
This leads to a mem abort is being observed in work item
continue_process_echoes(). Fix cancelling the work item before
tty->ldisc and tty->disc_data become NULL.

tty_release()
  tty_release_struct()
    tty_ldisc_release()
        tty_ldisc_kill()  // here tty->ldisc and tty->disc_data became NULL
    release_tty()
      tty_kref_put()
        kref_put(&tty->kref, queue_release_one_tty)

Change-Id: I168d6c93d011a8d419a397321a948de44f0ec749
Signed-off-by: default avatarMurali Nalajala <mnalajal@codeaurora.org>
parent edcd9db1
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