commit | 0609c03246ebb1b83a5b6c6eb3343fe9f08d8c7b | [log] [tgz] |
---|---|---|
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sun Jan 20 10:46:58 2019 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Jan 31 08:12:35 2019 +0100 |
tree | 5fa8fdf349808dd1e0468dced780eecc632a9e4c | |
parent | dff6b7b31d650424de0c9fb9038a20f37350a13f [diff] |
tty: Handle problem if line discipline does not have receive_buf commit 27cfb3a53be46a54ec5e0bd04e51995b74c90343 upstream. Some tty line disciplines do not have a receive buf callback, so properly check for that before calling it. If they do not have this callback, just eat the character quietly, as we can't fail this call. Reported-by: Jann Horn <jannh@google.com> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>