]> git.baikalelectronics.ru Git - kernel.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)
commit4a36c91d3da235b5292acf7a30410a46c54263d9
tree7df7a368eaf518dd91febe35a2fb0ea7a84b6416
parente24e06b0268165943c21c1e5a58ce19076870db2
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