pty: Hold ctrl_lock for packet mode updates
authorPeter Hurley <peter@hurleysoftware.com>
Thu, 16 Oct 2014 19:33:28 +0000 (15:33 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Nov 2014 00:34:36 +0000 (16:34 -0800)
commit4ed60fc257185dbb0daea7cd3e4289d1658b11f6
tree45f256d65961d5b86d33946eda270d401521aab2
parent2622d73e51acfe1dbeb21bf2299066bdead85163
pty: Hold ctrl_lock for packet mode updates

Updates to the packet mode enable require holding the ctrl_lock;
the serialization prevents corruption of adjacent fields.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Reviewed-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/pty.c