]> git.baikalelectronics.ru Git - kernel.git/commit
tty: n_gsm: fix missing mux reset on config change at responder
authorDaniel Starke <daniel.starke@siemens.com>
Thu, 14 Apr 2022 09:42:06 +0000 (02:42 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Apr 2022 06:36:04 +0000 (08:36 +0200)
commitca658530ee1c139b0f33fe03fc32a0fd936ef9b9
treebe2064aedf06ffd5d5b9620e0c54ebf93bb1a0ae
parentc02c8228f39a35a18b7da5bed4327a96bdd1c782
tty: n_gsm: fix missing mux reset on config change at responder

Currently, only the initiator resets the mux protocol if the user requests
new parameters that are incompatible to those of the current connection.
The responder also needs to reset the multiplexer if the new parameter set
requires this. Otherwise, we end up with an inconsistent parameter set
between initiator and responder.
Revert the old behavior to inform the peer upon an incompatible parameter
set change from the user on the responder side by re-establishing the mux
protocol in such case.

Fixes: 4a77954d67bb ("tty: n_gsm: Delete gsm_disconnect when config requester")
Cc: stable@vger.kernel.org
Signed-off-by: Daniel Starke <daniel.starke@siemens.com>
Link: https://lore.kernel.org/r/20220414094225.4527-1-daniel.starke@siemens.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_gsm.c