tty: Fix unsafe vt paste_selection()
authorPeter Hurley <peter@hurleysoftware.com>
Sat, 15 Jun 2013 13:36:15 +0000 (09:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jul 2013 23:47:10 +0000 (16:47 -0700)
commita7c8d58c79853adeebf0a1ddc9c63e433b4d97f1
tree328d40837fb13c7856d3aae2be663093fa6278e0
parent47aa658a015440906def231f54685c4d5d49dc38
tty: Fix unsafe vt paste_selection()

Convert the tty_buffer_flush() exclusion mechanism to a
public interface - tty_buffer_lock/unlock_exclusive() - and use
the interface to safely write the paste selection to the line
discipline.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_buffer.c
drivers/tty/vt/selection.c
include/linux/tty.h
include/linux/tty_flip.h