Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3450086rdb; Wed, 27 Dec 2023 07:46:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IFra+1deL6t+iVS7rWSLQ9dECRlcHYn7GI3hZcdPY1uX6g30SfgTxSlzN+9z3quxwmLTRNi X-Received: by 2002:a05:6871:4397:b0:203:cc8a:b949 with SMTP id lv23-20020a056871439700b00203cc8ab949mr10657505oab.54.1703692018176; Wed, 27 Dec 2023 07:46:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703692018; cv=none; d=google.com; s=arc-20160816; b=W9Mmm0JWlBV1x6Usxoh8o9VRIC3cctJhT9jkRWJbo5XAEtin93LS8iPQGmUQGT66eW hbjLC+Jutr1URc3UrPRqmXnw6sbI47FaKOUdFTdouvoIjVtzGohhGBMbliwluCtUjaJT OdsiE+oOxxqA6xwTvHdcu1i1yC00q7kB2n7xfeIPpXCuIt90SBX2epZd/qjw2nmWmuH9 IoXVrbq5yYC/Mf1mDZ+em1Vlj12VKjjEHITTIaP2dJAbcNmw2P3izdL6DxUzjpOWW4zt afO0eSjgwDVUhEfQHR1SYnGzIc7s7R1mXWnY/dtn5grVdp9+DnjPRzCDTVRnYzzNSF0m zDug== 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=dkKXtF2jhX2q3d+a5vsphJ7l3zS7fUwytAyuXmHIX3A=; fh=CYUB01y4ajrdhevfIRf0TaYNj8hYx8Vyar5XezUMzAE=; b=PZkXQkf+9psuQmUeWToeNey1zYOc8O5I3x1GtS7+zbUztno/mXBhBFwdzyf7J6dVzG o2/F+xXWLeq9iX9b22yrZtP+MFyOqZqSZbV+LayV5YwbSLyRgg/iY8ijEcX4suD0hbpj QIqe4xvY50mFfi20AfBvEVwVD7h90ZU42h4llpcYWSTa8GD/TccxXv190M94dXnbMifT +QDRzvDaJTWp/0tETbbVpt1+iwQ2+VBceCfvxaQ4fMpMLo60c90lNlf8LJkKFEnGNAy8 IwwQXm4T5lOhqrbbaoLToT3cgvljEkMorwyJEtWJo0qCd9a0bo/rfaKJoPzKOece0bRD jJig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=OU8lD5Yc; spf=pass (google.com: domain of linux-kernel+bounces-12089-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12089-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id l19-20020a05620a28d300b0077f70ba1f28si15517660qkp.621.2023.12.27.07.46.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 07:46:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12089-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=OU8lD5Yc; spf=pass (google.com: domain of linux-kernel+bounces-12089-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12089-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id CC5691C21995 for ; Wed, 27 Dec 2023 15:46:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8751445BEC; Wed, 27 Dec 2023 15:46:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="OU8lD5Yc" 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 826E245964; Wed, 27 Dec 2023 15:46:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A88AC433C8; Wed, 27 Dec 2023 15:46:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1703692005; bh=FVAzF6daxQ8ZuqevGdpKsQkUqo5vlGmUhgShjqY2IPU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OU8lD5YcV1tfKJkMESk+txqJXvn3t/8JgQEc7mTFFs3PJBN4Fb8bk0tfsP7J69YST 66B0F0SU7qZYkASqGaSeQWALbSlKEZn2U8NWrPF37lF8NiFMXYpsGV+rW4qQrxcicV eUbzg6CG4usuT6OujzN7Pc/RFHtb16rnr2FSe3Rw= Date: Wed, 27 Dec 2023 15:46:41 +0000 From: Greg KH To: Markus Elfring Cc: Hou Tao , bpf@vger.kernel.org, linux-input@vger.kernel.org, kernel-janitors@vger.kernel.org, Alexei Starovoitov , Benjamin Tissoires , David Vernet , Jiri Kosina , LKML , cocci@inria.fr Subject: Re: HID: bpf: One function call less in call_hid_bpf_rdesc_fixup() after error detection Message-ID: <2023122719-stunt-duration-9504@gregkh> References: <3203eb44-6e69-4bda-b585-426408cb75ee@web.de> <618f886f-b2ff-4d50-cf74-e8478a7e8547@huaweicloud.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: On Wed, Dec 27, 2023 at 09:19:27AM +0100, Markus Elfring wrote: > >> The kfree() function was called in one case by the > >> call_hid_bpf_rdesc_fixup() function during error handling > >> even if the passed data structure member contained a null pointer. > >> This issue was detected by using the Coccinelle software. > > > > It is totally OK to free a null pointer through kfree() and the ENOMEM > > case is an unlikely case, so I don't think the patch is necessary. > > Would you ever like to avoid redundant data processing a bit more? Hi, This is the semi-friendly patch-bot of Greg Kroah-Hartman. Markus, you seem to have sent a nonsensical or otherwise pointless review comment to a patch submission on a Linux kernel developer mailing list. I strongly suggest that you not do this anymore. Please do not bother developers who are actively working to produce patches and features with comments that, in the end, are a waste of time. Patch submitter, please ignore Markus's suggestion; you do not need to follow it at all. The person/bot/AI that sent it is being ignored by almost all Linux kernel maintainers for having a persistent pattern of behavior of producing distracting and pointless commentary, and inability to adapt to feedback. Please feel free to also ignore emails from them. thanks, greg k-h's patch email bot