]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tty: Fix GPF in flush_to_ldisc(), part 2
authorPeter Hurley <peter@hurleysoftware.com>
Mon, 11 Jan 2016 04:36:12 +0000 (20:36 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 26 May 2016 22:46:02 +0000 (15:46 -0700)
commitb770c1b61b5a61b5c392e9f9b2d8491c987980ca
tree455af6b6b00da2c45cc90b0e55df9f8a9b51db15
parent640ae23a60677f364f516f81dd761a7f3c6109f6
tty: Fix GPF in flush_to_ldisc(), part 2

Orabug: 23331050

[ Upstream commit f33798deecbd59a2955f40ac0ae2bc7dff54c069 ]

commit 9ce119f318ba ("tty: Fix GPF in flush_to_ldisc()") fixed a
GPF caused by a line discipline which does not define a receive_buf()
method.

However, the vt driver (and speakup driver also) pushes selection
data directly to the line discipline receive_buf() method via
tty_ldisc_receive_buf(). Fix the same problem in tty_ldisc_receive_buf().

Cc: <stable@vger.kernel.org>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
(cherry picked from commit 3beac2b0bffd8e977ef1d464dd424f22af965a96)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
include/linux/tty.h