/* Locking: none. Must be called after tty is definitely unused  */
void free_tty_struct(struct tty_struct *tty)
/* Locking: none. Must be called after tty is definitely unused  */
void free_tty_struct(struct tty_struct *tty)
{
	kfree(tty->write_buf);
	tty_buffer_free_all(tty);
	kfree(tty);
}