Re: [PATCH] tty_ioctl: Soft carrier handling

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Morton
Date: Monday, March 10, 2008 - 9:26 pm

On Mon, 10 Mar 2008 21:56:13 +0000 Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:


change_termios() modifies tty->termios under tty->termios_mutex, which is
very sensible.

Hence (surely?) all code which takes a copy of tty->termios should do so
under tty->termios_mutex so that it doesn't get a copy of an internally 
inconsistent, half-overwritten structure.

But this code doesn't do that, nor does change_termios(), set_termios() and
perhaps other places.

Confused.


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] tty_ioctl: Soft carrier handling, Alan Cox, (Mon Mar 10, 2:56 pm)
Re: [PATCH] tty_ioctl: Soft carrier handling, Jiri Slaby, (Mon Mar 10, 3:24 pm)
Re: [PATCH] tty_ioctl: Soft carrier handling, Andrew Morton, (Mon Mar 10, 9:26 pm)
Re: [PATCH] tty_ioctl: Soft carrier handling, Alan Cox, (Wed Mar 12, 6:22 am)