Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp10508140pxu; Wed, 30 Dec 2020 04:53:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJxiqwMsS6J4BsRYUNk2efbIpDS/FXwL4juVv02i3/vScyWYWXIaf6xvcTfpx7b/baJYHX+E X-Received: by 2002:a17:906:971a:: with SMTP id k26mr50183956ejx.279.1609332792997; Wed, 30 Dec 2020 04:53:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609332792; cv=none; d=google.com; s=arc-20160816; b=uXfjSPs+Gf2pYnM7lmvki6aAZtfd3a/N16IHz0uXG6+LWfP8T/DVAa5vD8e7I5l3l/ NPKhIzPwE5Y2L1BEaGGcC/RHZjVelvDviEng/78TXqrVkbodI4UTyBjPLrmoTbk7v1q3 68ojKodaqVTRr+4SwPk9HV4xPEwpqb+b65PL1OfaBVwji76Kzuor3Yob1zF54clIKPvd hp8thZ2bm+n/eUtl3ZNrcwyzC5HFVLB+5PiWA85KOEXtF2YRNRfmGB0rGHU+Z6vkMeOY oZkUQIFYixftPxfMVXzWLqCFbpN/2UkDvzi8CX9kFBtEMG4zcbLbERfruK4QpHyuwcAC ZcPw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=D/uDrIouJRjjDg43gTktuCVpAMEGgqCJsVCyfk+5cGI=; b=YXgMNkYzVtf1u7XUMw1eytIRkGXwg9wn6YWoWUatdDyZAbjUIyuFdbg/h2mo1sK9+O 9IpngQ1WKNZMs449FM8eePWTKHqtR0djB8py/HZQv773CKNgk6uVEh6tQVj/lp2wfMUS WjMEy2MnCfq8a/kE1brcwPmjxoNGdboDdTxvhjao62K4+WU0cBnPGPvrc1LKl3G/DXIq CY0Qibf+AYzJyhCUXar970PUf6CrpMnZwuzcP++VpJ4Zxb6EdTklg3IZ73Ay+TeYLFuV xvg3yxbdGfZcIawDy9Aym9MQzAQTJv4IO3g8qdmj3FO/PA43SKv96/HFHsZOQLeLEvNk Vrfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WfBzYsy1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p8si23174780edm.143.2020.12.30.04.52.50; Wed, 30 Dec 2020 04:53:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WfBzYsy1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726739AbgL3Mt6 (ORCPT + 99 others); Wed, 30 Dec 2020 07:49:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:50800 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726605AbgL3Mt6 (ORCPT ); Wed, 30 Dec 2020 07:49:58 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 102EA221FA; Wed, 30 Dec 2020 12:49:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609332557; bh=N5O6ImIkhpBZXKVxzeXm2qESd/kJs56wLovgR0WzzvA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WfBzYsy1U4kWCSu15T6F6GHLAulAxHU6NStTDDann3jT9gNRpDyoXovshTBVH5Zie BYx60T/7tNBZg0OrERa8shK1Nyh9dOtc1Qx9vSJGdpVZMQYU53fvjmm8+uHixYnQ1S NnPH1SydXvkM4FY8O0bytIAsLNKaAaB7Xfx8px8k= Date: Wed, 30 Dec 2020 13:50:44 +0100 From: Greg Kroah-Hartman To: Markus Elfring Cc: Xiaolei Wang , kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, David Lechner , Mark Brown , "Rafael J. Wysocki" , Julia Lawall Subject: Re: [PATCH v3] regmap: debugfs: Fix a memory leak when calling regmap_attach_dev Message-ID: References: <20201229105046.41984-1-xiaolei.wang@windriver.com> <1503f5fa-1ad6-7675-6e02-6dc1eb04c1de@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1503f5fa-1ad6-7675-6e02-6dc1eb04c1de@web.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 30, 2020 at 01:01:42PM +0100, Markus Elfring wrote: > > Thank you very much, very good suggestion, > > Thanks for another positive feedback. > > > > do I need to re-send a patch to fix this problem, or modify the previous patch and send it again? > > Please convince the involved contributors to integrate a corrected patch version. > > * Better indentation. > > * … > >> + if (!map->debugfs_name) > >> + kfree(map->debugfs_name); > > Would this questionable null pointer check result in a memory leak? 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