aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strlcpy-src.c
diff options
context:
space:
mode:
authorDaniel Starke <[email protected]>2022-04-14 02:42:15 -0700
committerGreg Kroah-Hartman <[email protected]>2022-04-15 08:36:04 +0200
commit17eac652028501df7ea296b1d9b9c134db262b7d (patch)
treee3102570f7b1187bdb2df16674d86bc210e75cce /lib/test_fortify/write_overflow-strlcpy-src.c
parentdeefc58bafb4841df7f0a0d85d89a1c819db9743 (diff)
tty: n_gsm: fix missing explicit ldisc flush
In gsm_cleanup_mux() the muxer is closed down and all queues are removed. However, removing the queues is done without explicit control of the underlying buffers. Flush those before freeing up our queues to ensure that all outgoing queues are cleared consistently. Otherwise, a new mux connection establishment attempt may time out while the underlying tty is still busy sending out the remaining data from the previous connection. Fixes: e1eaea46bb40 ("tty: n_gsm line discipline") Cc: [email protected] Signed-off-by: Daniel Starke <[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