Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6700506rdb; Fri, 15 Dec 2023 06:13:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IGK7YCrHVAN4Cw8jhzk3VR4/jBhOY/ypDF3IOrFBkahWTMAMGG74G5zSSRpxXoclIiUhcbC X-Received: by 2002:a05:6a20:daa7:b0:192:f11b:d660 with SMTP id iy39-20020a056a20daa700b00192f11bd660mr816588pzb.14.1702649586416; Fri, 15 Dec 2023 06:13:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702649586; cv=none; d=google.com; s=arc-20160816; b=q0+YV3NvyvtpxnZVJS8n2HuLd05if7Enq4EjeKxXU1tXRNVGHDN1S0FCGbLn9/00h0 bkPtCGt3HmM9Jm5jqLntimrvRxKN1uek4TkZLhMRAZu2J1WLk+EYuJokUyG7ssCqpap9 bLWwObYjfKJyPXePqZIM2oWsrtLsczur9c/gGtSgW7IDd9kJ8jlgaSswYCIminQYZgHq IF+hFAjBVsxocHlLWNnjW7Db5NWwXM8M5yKPam5jqkj6d5Zilj/1y58L7/Wj4WAxlW79 UN8I9+3c9YHZw+v4vH/8dIYoZAHIGZ0XYOvoKvT3tSLFHfTT3XdjB6AtaphH2AJmymxE U7eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=6lXPz7cDFBaGRithJfCe606xGZ8+J8nHBR5yjXigdLE=; fh=WfYzAJ/l+kHno3mDuYTxmq0DPSNAknQqpA7lsMO2MIg=; b=tKFvVHJyV2SY8jkqC9BoLGIUY58nz3Ty5O+TwZda+u8qVxZ1zn3e2ZTSc4W0Fmuh/2 aKgWh0FI8PXFMOhIuUNDrBJjTIc4u3kw1YFGcdR0JvkiQtR58oulYrpRrGIUqZ5zP0ic J48Pr7tbsDXVf7vIJ2JtQ/ipWti6Wh6M/PpQ5j2f7spNluYk7H5azqCYRc5w1N+AmNyp dTh9U+mWGuwmhOWRN0r3S++sF+Ccvh0EfIKKi2l3u6Svloh6XEtpVzIe+kC+Fm+1jw/3 eWTF9bwaM4FIYilGR/PDI01z04DSZrPtRc2b3Zj4tJ3KbzmBYa7YgEwt7kry4aMldevh 6lMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0MotMeYv; spf=pass (google.com: domain of linux-kernel+bounces-1089-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1089-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l5-20020a056a00140500b006cdf584699fsi13221524pfu.336.2023.12.15.06.13.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 06:13:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1089-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0MotMeYv; spf=pass (google.com: domain of linux-kernel+bounces-1089-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1089-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 1E49C285A7E for ; Fri, 15 Dec 2023 14:13:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B88C30323; Fri, 15 Dec 2023 14:13:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="0MotMeYv" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 324272F50D; Fri, 15 Dec 2023 14:12:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D862C433C8; Fri, 15 Dec 2023 14:12:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1702649577; bh=/pGqmw3qNACcmX+OGPYUWwmz/jwxkgn8vuBVL7PppPU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0MotMeYv/FNRZNLr28gUy6rYyxXaF+f98p9Gz1L87tGawr1vTD0sXIDvHVDC0PSfq PFU0kmV72RYO1GuhX49y6v4I8ReofiQ+t8bG8K9AJC//uY+fNVLKYrncGTqUk6VmWS qjFWzNVzwitYhKOhau4DLGFh80KdKz0mMzxfdUSs= Date: Fri, 15 Dec 2023 15:12:54 +0100 From: Greg KH To: Zijun Hu Cc: jirislaby@kernel.org, quic_qiancai@quicinc.com, quic_arandive@quicinc.com, quic_saipraka@quicinc.com, quic_vnivarth@quicinc.com, quic_eberman@quicinc.com, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] tty: Add comments for tty-ldisc module loading logic Message-ID: <2023121523-cadillac-prologue-a81d@gregkh> References: <1702640236-22824-1-git-send-email-quic_zijuhu@quicinc.com> <1702647690-6787-1-git-send-email-quic_zijuhu@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1702647690-6787-1-git-send-email-quic_zijuhu@quicinc.com> On Fri, Dec 15, 2023 at 09:41:30PM +0800, Zijun Hu wrote: > Current tty-ldisc module loading logic within tty_ldisc_get() > is prone to mislead beginner that the module is able to be loaded > by a user without capability CAP_SYS_MODULE, add comments to make > the logic easy to undertand. > > Signed-off-by: Zijun Hu > --- > Changes in v2: > - Remove condition checking changes As I asked for before, please get other, more experienced developers, from your company, to review and sign-off on this patch before sending it out again. I can't take this as-is, sorry. greg k-h