diff options
author | Johan Hovold <[email protected]> | 2019-01-30 10:49:34 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2019-01-30 11:54:01 +0100 |
commit | a1960e0f1639cb1f7a3d94521760fc73091f6640 (patch) | |
tree | 26e0580dd080143c2752ec4bf5aadd22173c0cf2 /net/lapb/lapb_in.c | |
parent | 4d95987a32db53f3beca76f8c4c8309ef6a5f192 (diff) |
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 <[email protected]> # 4.13
Cc: Okash Khawaja <[email protected]>
Cc: Samuel Thibault <[email protected]>
Signed-off-by: Johan Hovold <[email protected]>
Reviewed-by: Samuel Thibault <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions