diff options
author | 2022-04-14 02:42:22 -0700 | |
---|---|---|
committer | 2022-04-15 08:36:05 +0200 | |
commit | 73029a4d7161f8b6c0934553145ef574d2d0c645 (patch) | |
tree | 5c170b7c583b0768b6d171c611cae675efc1eb94 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | tty: n_gsm: fix missing tty wakeup in convergence layer type 2 (diff) | |
download | linux-dev-73029a4d7161f8b6c0934553145ef574d2d0c645.tar.xz linux-dev-73029a4d7161f8b6c0934553145ef574d2d0c645.zip |
tty: n_gsm: fix reset fifo race condition
gsmtty_write() and gsm_dlci_data_output() properly guard the fifo access.
However, gsm_dlci_close() and gsmtty_flush_buffer() modifies the fifo but
do not guard this.
Add a guard here to prevent race conditions on parallel writes to the fifo.
Fixes: e1eaea46bb40 ("tty: n_gsm line discipline")
Cc: stable@vger.kernel.org
Signed-off-by: Daniel Starke <daniel.starke@siemens.com>
Link: https://lore.kernel.org/r/20220414094225.4527-17-daniel.starke@siemens.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions