pty: Hold ctrl_lock for packet mode updates
authorPeter Hurley <[email protected]>
Thu, 16 Oct 2014 19:33:28 +0000 (15:33 -0400)
committerGreg Kroah-Hartman <[email protected]>
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 <[email protected]>
Reviewed-by: Alan Cox <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/tty/pty.c