]> git.karo-electronics.de Git - linux-beck.git/commit
tty: n_hdlc not atomic use tty->flags.
authorIlya Zykov <ilya@ilyx.ru>
Mon, 7 Nov 2011 07:32:46 +0000 (11:32 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 30 Nov 2011 12:30:49 +0000 (21:30 +0900)
commit7962fce9a052f34390b6dab9f11df1d2e48c138d
tree7df7a368eaf518dd91febe35a2fb0ea7a84b6416
parentc8381c15b14b7c2d212c182d3b9b3fa7217994da
tty: n_hdlc not atomic use tty->flags.

N_HDLC can spoil tty->flags because use not atomic operations on tty->flags.
I use n_hdlc line discipline and it happens.

Signed-off-by: Ilya Zykov <ilya@ilyx.ru>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/n_hdlc.c