Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4741954iob; Sun, 8 May 2022 23:57:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfJ8NV9NBE74FEmg9BrxMqbOatWqSY36C9C97xfHG1dJrj7nl+2UDlzNEgIJWXdOuTycAO X-Received: by 2002:a62:1613:0:b0:510:82a9:e3bf with SMTP id 19-20020a621613000000b0051082a9e3bfmr13598234pfw.23.1652079434596; Sun, 08 May 2022 23:57:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652079434; cv=none; d=google.com; s=arc-20160816; b=U4kSuThibQ129sRFR+MDJVzXzIZTBg8wO9phjwlwr2KZosvpL/29beRFmYdF1wjWTJ 3sjozV2PB0RJ5joiijGN35i04O64+xy09l2KMS8NWRxe9KYa8t7VjAa9XrupKiwp7MeH UIr1BBHYT6nTr1ca29rFtMC91zmxAYkDj2XiMi2CL3/kQwbuhn+nEltAvnYRg1ybPs+I 6aRe1rXeSRnkvcey9zgIub5v39kX8uV6bUN873qaYmvOAXw3EZMydSqVQqRI+Cgd0Jcz dd6HnJsd1vY6SKIhKF7QosRV7yao27P/S0pS22wD/YsLXfb2y1x3rASNvK5rBMUJcxDC dr4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=6HlKiPU22ArLJ0uzLI9AfiKjHfPGbPe2f3/gjYKci3k=; b=JM2uRvG4IrfTMpnqowkFkp3PdP1emkyLC6TZv9Gz2ik8z6nxd4GW106+PNQuGBa8H0 d3p6C/UApK9LCix4iPX5BFo2V9y9xYLH2Wyr+svwMNSN3FIoAHaEmzdJ3Q2q6TbO8Ob9 lQbO+/RCunHZ1DPa7+d6QBQQZa92cft0TkdcrnetKIzXKJmCdHALHw3Cvxwz1MLoTjfi i/sHZtcDAFj5R6iIJu9qY1CVGLc5iXkU8ekKOcgXZ50BIrjQFRy8mu1Fmie24FUDJuIW ZfyqHBAm08Hvf70DR7StmOko3LsBOwF/VqNJ0/BG49Lr92QjxkBnkBCoXszN4/fkUG/5 tpdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RlhrGh7t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id n10-20020a170902f60a00b0015e8c77a56bsi10153334plg.570.2022.05.08.23.57.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 23:57:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RlhrGh7t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5C7331A0762; Sun, 8 May 2022 23:55:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357824AbiEDR3R (ORCPT + 99 others); Wed, 4 May 2022 13:29:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356385AbiEDRJM (ORCPT ); Wed, 4 May 2022 13:09:12 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92F6D4A3C5; Wed, 4 May 2022 09:55:05 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BD784618A8; Wed, 4 May 2022 16:55:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 18204C385A4; Wed, 4 May 2022 16:55:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1651683304; bh=Hkp8DQehoNPd3+uQxjKYuRBfz4VL9KbFU2WrwH6PcyU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RlhrGh7tQEFZgIapDeruJSzynthwjN2cnbBd+/7Eky/mAkQvw2jzPCsmqv1x7U4ud 9auPz1G22M+y7MVdA0D0+yOWz8+FEQIMahU6Sv218KJ66Dmm+kx+x5zTkI1WSgXO0N kaSSZRePaIgSs2m5K3VHii4STU1tFmw4uACU/D54= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Daniel Starke Subject: [PATCH 5.15 169/177] tty: n_gsm: fix missing tty wakeup in convergence layer type 2 Date: Wed, 4 May 2022 18:46:02 +0200 Message-Id: <20220504153108.699326364@linuxfoundation.org> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220504153053.873100034@linuxfoundation.org> References: <20220504153053.873100034@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Daniel Starke commit 1adf6fee58ca25fb6720b8d34c919dcf5425cc9c upstream. gsm_control_modem() informs the virtual tty that more data can be written after receiving a control signal octet via modem status command (MSC). However, gsm_dlci_data() fails to do the same after receiving a control signal octet from the convergence layer type 2 header. Add tty_wakeup() in gsm_dlci_data() for convergence layer type 2 to fix this. Fixes: e1eaea46bb40 ("tty: n_gsm line discipline") Cc: stable@vger.kernel.org Signed-off-by: Daniel Starke Link: https://lore.kernel.org/r/20220414094225.4527-14-daniel.starke@siemens.com Signed-off-by: Greg Kroah-Hartman --- drivers/tty/n_gsm.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/tty/n_gsm.c +++ b/drivers/tty/n_gsm.c @@ -1586,6 +1586,7 @@ static void gsm_dlci_data(struct gsm_dlc tty = tty_port_tty_get(port); if (tty) { gsm_process_modem(tty, dlci, modem, slen); + tty_wakeup(tty); tty_kref_put(tty); } fallthrough;