Skip to content
  • Jiri Slaby's avatar
    TTY: introduce deinit helpers for proper ldisc shutdown · 6716671d
    Jiri Slaby authored
    
    
    Introduce deinitialize_tty_struct which should be called after
    initialize_tty_struct and before successfull tty_ldisc_setup.
    
    It calls tty_ldisc_deinit which is opposite of tty_ldisc_init. It only
    puts a reference to ldisc and assigns NULL to tty->ldisc.
    
    It will be used to shut down ldisc when tty_release cannot be called
    yet.
    
    Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
    Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
    Cc: Julian Anastasov <ja@ssi.bg>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    6716671d