]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
tty: n_gsm: fix wrong DLCI release order
authorDaniel Starke <daniel.starke@siemens.com>
Thu, 14 Apr 2022 09:42:14 +0000 (02:42 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 22 Jun 2022 12:23:05 +0000 (14:23 +0200)
commit0d93179abf165e8ba99227dfb834083a0b240983
tree097c311c3cbb8da3f3b76a1ccfebe34f87c5e561
parentb6f5a5350ae45c2f6d83e390156340d884b063f1
tty: n_gsm: fix wrong DLCI release order

BugLink: https://bugs.launchpad.net/bugs/1978234
commit deefc58bafb4841df7f0a0d85d89a1c819db9743 upstream.

The current DLCI release order starts with the control channel followed by
the user channels. Reverse this order to keep the control channel open
until all user channels have been released.

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-9-daniel.starke@siemens.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/tty/n_gsm.c