From: Ben Hutchings Date: Mon, 19 May 2014 00:03:06 +0000 (+0100) Subject: Staging: speakup: Update __speakup_paste_selection() tty (ab)usage to match vt X-Git-Tag: omap-for-v3.16/fixes-against-rc1~112^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28a821c306889b9f2c3fff49abedc9b2c743eb73;p=pandora-kernel.git Staging: speakup: Update __speakup_paste_selection() tty (ab)usage to match vt 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/744015 Reported-by: Paul Gevers Reported-and-tested-by: Jarek Czekalski Signed-off-by: Ben Hutchings Cc: # v3.8 but needs backporting for < 3.12 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed