diff options
author | 2022-04-14 02:42:11 -0700 | |
---|---|---|
committer | 2022-04-15 08:36:04 +0200 | |
commit | 7a0e4b1733b635026a87c023f6d703faf0095e39 (patch) | |
tree | c10f3b3e244e9c6c15f1fc7260378dc2600a1ab1 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | tty: n_gsm: fix wrong signal octet encoding in convergence layer type 2 (diff) | |
download | linux-dev-7a0e4b1733b635026a87c023f6d703faf0095e39.tar.xz linux-dev-7a0e4b1733b635026a87c023f6d703faf0095e39.zip |
tty: n_gsm: fix frame reception handling
The frame checksum (FCS) is currently handled in gsm_queue() after
reception of a frame. However, this breaks layering. A workaround with
'received_fcs' was implemented so far.
Furthermore, frames are handled as such even if no end flag was received.
Move FCS calculation from gsm_queue() to gsm0_receive() and gsm1_receive().
Also delay gsm_queue() call there until a full frame was received to fix
both points.
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-6-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