summaryrefslogtreecommitdiff
path: root/include/scsi/scsi_dh.h
diff options
context:
space:
mode:
authorDaniel Starke <daniel.starke@siemens.com>2022-07-01 08:16:44 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-07-01 10:07:06 +0200
commitac77f0077c3265197d378158c85a55eee6d21508 (patch)
tree2117c1b5d807a5c42ccfa017c3c6eac83edc1cad /include/scsi/scsi_dh.h
parentc8177f90b7c618042e8dd19c87307cf29a7dc275 (diff)
tty: n_gsm: fix user open not possible at responder until initiator open
After setting up the control channel on both sides the responder side may want to open a virtual tty to listen on until the initiator starts an application on a user channel. The current implementation allows the open() but no other operation, like termios. These fail with EINVAL. The responder sided application has no means to detect an open by the initiator sided application this way. And the initiator sided applications usually expect the responder sided application to listen on the user channel upon open. Set the user channel into half-open state on responder side once a user application opens the virtual tty to allow IO operations on it. Furthermore, keep the user channel constipated until the initiator side opens it to give the responder sided application the chance to detect the new connection and to avoid data loss if the responder sided application starts sending before the user channel is open. Fixes: e1eaea46bb40 ("tty: n_gsm line discipline") Signed-off-by: Daniel Starke <daniel.starke@siemens.com> Link: https://lore.kernel.org/r/20220701061652.39604-1-daniel.starke@siemens.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/scsi/scsi_dh.h')
0 files changed, 0 insertions, 0 deletions