diff options
author | Vincent Whitchurch <[email protected]> | 2022-08-18 13:50:26 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2022-08-30 14:31:53 +0200 |
commit | 56c14fb4086b2de6921dd70251b19b364b909ea1 (patch) | |
tree | 796ed82646c2af26914f7027782cb3e2b02b0cdc /lib/test_fortify/write_overflow-strlcpy-src.c | |
parent | 846651eca073e2e02e37490a4a52752415d84781 (diff) |
tty: Fix lookahead_buf crash with serdev
Do not follow a NULL pointer if the tty_port_client_operations does not
implement the ->lookahead_buf() callback, which is the case with
serdev's ttyport.
Reported-by: Hans de Goede <[email protected]>
Fixes: 6bb6fa6908ebd3 ("tty: Implement lookahead to process XON/XOFF timely")
Reviewed-by: Ilpo Järvinen <[email protected]>
Signed-off-by: Vincent Whitchurch <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions