-
由 Ben Hutchings 提交于
This function is largely a duplicate of paste_selection() in drivers/tty/vt/selection.c, but with its own selection state. The speakup selection mechanism should really be merged with vt. For now, apply the changes from 'TTY: vt, fix paste_selection ldisc handling', 'tty: Make ldisc input flow control concurrency-friendly', and 'tty: Fix unsafe vt paste_selection()'. References: https://bugs.debian.org/735202 References: https://bugs.debian.org/744015Reported-by: NPaul Gevers <elbrus@debian.org> Reported-and-tested-by: NJarek Czekalski <jarekczek@poczta.onet.pl> Signed-off-by: NBen Hutchings <ben@decadent.org.uk> Cc: <stable@vger.kernel.org> # v3.8 but needs backporting for < 3.12 Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
28a821c3