Received: by 2002:a19:f614:0:0:0:0:0 with SMTP id x20csp22109lfe; Fri, 15 Apr 2022 17:35:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzSr8X7IPpTc2x5XW2n1nJlLwH6CpqpQVR/+ftDEWEOxuZbYJHp3k/4q3+pI7lEZoxDTdO X-Received: by 2002:a17:902:e1c5:b0:158:e060:4f6c with SMTP id t5-20020a170902e1c500b00158e0604f6cmr1449092pla.163.1650069314893; Fri, 15 Apr 2022 17:35:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650069314; cv=none; d=google.com; s=arc-20160816; b=DN7G/mvvqmwUL6QWodw5FNvGPG3oikamGGvZxXx1WfOxfAmdOfWUFrhQUd1pY1FUK2 xDPnW95OXVJf3ADnsdGgRN4BoWocpa3TuftGID53EAn1fAUkYepi0DZ7zDZRMZelqt9O 2ZwHoJsPna2hsd3+nNAFqDIAMe0UeqrllxENx9tJ9iUTr+StoVpvuFRK8MUwn11ntDQH N/MmuJ7IDpB64LvHol1Xf6fu0H72NGaV+dpaQLRyN5Rj/A+FkfVYxZmg80eqJTmKPfAS iGeXh6LZZif73Db3TkThZR4axlV6mFq2XiKQVeTzbesqrULwjwA1YL6eVA025JpiKuvj MPTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=VYuW3LCEKDQo9hflSfLz6M7uB4jFuKuXZytyNIg3BXc=; b=UYqWV49xAZS7qr5DXfgTH0A+KuS/lqKm01VlUahgPHL9e9sTQ9Jw3ouNaIodfz/bTt ebvJmf1nVvfGL4X3EDK+j1mDQ3HUV78rrUglXtxaSYuXYuiv0Px/RMGnUTDnUvRmAKX2 FwQ4lcpx65jwRe4yv8RQXBmlc2VVLnUILibMDGSUse1ZExwqS6k+z5QdrBw7Z4qDZjz8 ZpKXKBCEiPry+L80UKqEC2dZwkZIxNuJu2ik3n/wqgii1a1DPspr3ECLXiy/Qr03/57N 4J/4vxtCpWUgb3UaOfEf7PzbXTiyXVc/WKv2zKqL/adHYfncBBk0TnXilhNL6dOJZbS0 IYUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Y95mTntU; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id n4-20020a170902f60400b001586f3a7475si2395080plg.466.2022.04.15.17.35.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 17:35:14 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Y95mTntU; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 08D02EB0B7; Fri, 15 Apr 2022 17:31:17 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350460AbiDOGeE (ORCPT + 99 others); Fri, 15 Apr 2022 02:34:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350458AbiDOGd4 (ORCPT ); Fri, 15 Apr 2022 02:33:56 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D21F45BE52; Thu, 14 Apr 2022 23:31:28 -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 ams.source.kernel.org (Postfix) with ESMTPS id 81CB5B8282C; Fri, 15 Apr 2022 06:31:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 981C2C385A6; Fri, 15 Apr 2022 06:31:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650004286; bh=vNvTyZfr+G0pyUo1bitL8R5ZCYiZCbBy0L86pD4L9zg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Y95mTntUPcQegNJbDJWA4bBSmAn2sSaDxOHc56ExScPJYvpvNbZ571XWuBqUjfcXG mYAl+lcETjSs9XwYcXZ+otSKnKPbP75hNLd+gLZHbQrG3zlJ1Sq4p2vpbocXxfOaiR mPv7EywZ2DvLLoFjVgikn+Lmyg50EFtiOBsVJgUA= Date: Fri, 15 Apr 2022 08:31:23 +0200 From: Greg KH To: "D. Starke" Cc: linux-serial@vger.kernel.org, jirislaby@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 16/20] tty: n_gsm: fix invalid command/response bit check for UI/UIH frames Message-ID: References: <20220414094225.4527-1-daniel.starke@siemens.com> <20220414094225.4527-16-daniel.starke@siemens.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220414094225.4527-16-daniel.starke@siemens.com> X-Spam-Status: No, score=-2.0 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=no 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 On Thu, Apr 14, 2022 at 02:42:21AM -0700, D. Starke wrote: > From: Daniel Starke > > n_gsm is based on the 3GPP 07.010 and its newer version is the 3GPP 27.010. > See https://portal.3gpp.org/desktopmodules/Specifications/SpecificationDetails.aspx?specificationId=1516 > The changes from 07.010 to 27.010 are non-functional. Therefore, I refer to > the newer 27.010 here. Chapter 5.4.3.1 states the CR bit in UI and UIH > frames shall always be set 1 by the initiator and 0 by the responder. This has nothing to do with the change you made here. > Currently, gsm_queue() has a pre-processor gated (excluded) check which > treats all frames that conform to the standard as malformed frames. > Remove this optional code to avoid confusion and possible breaking changes > in case that someone includes it. Again, nothing to do with the code change. > > Fixes: e1eaea46bb40 ("tty: n_gsm line discipline") This "fixes" nothing :( > Cc: stable@vger.kernel.org How is commenting out unused code a stable backport requirement? > Signed-off-by: Daniel Starke > --- > drivers/tty/n_gsm.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/drivers/tty/n_gsm.c b/drivers/tty/n_gsm.c > index e9a7d9483c1f..f4ec48c0d6d7 100644 > --- a/drivers/tty/n_gsm.c > +++ b/drivers/tty/n_gsm.c > @@ -1896,10 +1896,6 @@ static void gsm_queue(struct gsm_mux *gsm) > case UI|PF: > case UIH: > case UIH|PF: > -#if 0 > - if (cr) > - goto invalid; > -#endif All you are doing is cleaning up dead code. Not a big deal, and not worth all the text above to confuse people :( thanks, greg k-h