Johan Hovold
a1960e0f16
staging: speakup: fix tty-operation NULL derefs
The send_xchar() and tiocmset() tty operations are optional. Add the
missing sanity checks to prevent user-space triggerable NULL-pointer
dereferences.
Fixes: 6b9ad1c742bf ("staging: speakup: add send_xchar, tiocmset and input functionality for tty")
Cc: stable <stable@vger.kernel.org> # 4.13
Cc: Okash Khawaja <okash.khawaja@gmail.com>
Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-01-30 11:54:01 +01:00
..
2018-05-15 09:31:38 +02:00
2018-12-05 09:39:45 +01:00
2018-11-07 12:35:10 +01:00
2018-05-15 09:31:38 +02:00
2018-11-07 12:22:33 +01:00
2018-11-07 12:35:10 +01:00
2018-05-06 19:02:37 -07:00
2018-11-07 12:35:10 +01:00
2018-07-16 10:04:11 +02:00
2018-05-06 19:02:37 -07:00
2018-11-07 12:22:33 +01:00
2019-01-30 11:54:01 +01:00
2018-06-17 09:05:11 +02:00
2018-06-17 09:05:11 +02:00
2018-07-11 14:45:54 +02:00