Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2801590pxb; Tue, 9 Mar 2021 11:10:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJwT2CxYiQCMLSO+M9t6Da0ybewzxLsturcdXxvHz8sLLuJBemWaslgT9Xuo+4jm8Ri/pG6M X-Received: by 2002:aa7:d1cd:: with SMTP id g13mr5839011edp.369.1615317007191; Tue, 09 Mar 2021 11:10:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615317007; cv=none; d=google.com; s=arc-20160816; b=v/JjhJXJtWFLI/sHq8SJPvunAsPekAGoCYbNHlDscGSkjtgX4TaP+xVKvx5eYKkyxT diqAJRfYx6gTupd9FJ7x5a0VEvmVFA2P6sAR7e7AI1/VXR2fT/4CiHn6gZ5HGaBrgtKw Hw8EubRpfxeHfaPEioYnr1q+msLzV+7F6yZHxF6Jln/ubl9f9q6qqU8rEzmLYk91hzaY DEiysO3986wyRH7IW3UoXVVSobX6tq4MMFcOEXhoBoc4v89XoI0upd4piAZU9Y7mfE7l EVLl+gN+5IKzyfL0KVjZdxw1se0GHzg9e6dZVpMqB63Q/v6Y7sHSqopK7MtNttbFYDM6 EeFQ== 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:date :message-id:subject:references:in-reply-to:cc:to:from:dkim-signature; bh=V3WOsRQQ/94k8mMO8TzsUU0IXtO2KdlBlGIMykXA9aE=; b=BHRR2P8jGGouoCzln6wwEk4LtXTNb/6SKoO3/Y89HfG2ExtbwvLRe2qMdfbcNtVeZm CPdS/t0OqdMn5+q+1cPHKUQNDOsCbTwVh/4IkNBDO9/T/2KdDSqJeK2/2N3M8CoMGKkz BIXtU8h+0RiulfdAgoF32HsqGlMMxHEj9XyH4HGTo/BrP71ItIwWulJM3B2RjhOtPQEZ xIdPlZtsPXmEZ2u9gwi6s9S0RI33hlHwaRaqN3MHHsC8CoGpXgwPXazLUnOUQeUOVhDG NeK/25EsqJ+PoNbww7iEmRfGZjg+PRf8w64T6FNcr5KEx44hLwrwo0rnASz19PPdOZaa vfKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n+nF6n4y; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l3si9844456edk.141.2021.03.09.11.09.44; Tue, 09 Mar 2021 11:10:07 -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=@kernel.org header.s=k20201202 header.b=n+nF6n4y; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231486AbhCITIm (ORCPT + 99 others); Tue, 9 Mar 2021 14:08:42 -0500 Received: from mail.kernel.org ([198.145.29.99]:52568 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231345AbhCITId (ORCPT ); Tue, 9 Mar 2021 14:08:33 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 036D1651D1; Tue, 9 Mar 2021 19:08:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615316912; bh=msLZKxQQPzVjg65ZEJ6TIYwfcCyD6r9QluS05hY8Ts8=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=n+nF6n4yvuLcCxxL8ECgdWpZzjx7jDIN/KFP5JIgfGQB3jfIarAj7MGtO269o/BvD o8TjGr9VVxWmET4hvQ3GRqihXSwQj4ITwnb+BrdTVcO2Di3poJ6Ir5NPZceVVzAWrr HENGSzt+sbAI8Yu16rlB++1bx5z3b00i8JHd/cnJihPVHPP5avrSu7vBxExpTKwK1e P5L5QtxzvIQ4PwIY8g2o+E50mW7gbC5PwmXy079iiXPakcCeHlYX2GeiuL9OS/6nsY PXI5T/Ib0gQeng5yIRQd9g2+D12z9TsAKbOzsl+ERodkxNUHA4rVjARsS89WGPXok0 yzXA0PrbkBnlA== From: Mark Brown To: linux-kernel@vger.kernel.org, Meng.Li@windriver.com, gregkh@linuxfoundation.org, rafael@kernel.org Cc: meng.li@windriver.com In-Reply-To: <20210226021737.7690-1-Meng.Li@windriver.com> References: <20210226021737.7690-1-Meng.Li@windriver.com> Subject: Re: [PATCH] driver: regmap: set debugfs_name to NULL after it is freed Message-Id: <161531684151.49333.12973462040505596359.b4-ty@kernel.org> Date: Tue, 09 Mar 2021 19:07:21 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 26 Feb 2021 10:17:37 +0800, Meng.Li@windriver.com wrote: > There is a upstream commit cffa4b2122f5("regmap:debugfs: > Fix a memory leak when calling regmap_attach_dev") that > adds a if condition when create name for debugfs_name. > With below function invoking logical, debugfs_name is > freed in regmap_debugfs_exit(), but it is not created again > because of the if condition introduced by above commit. > regmap_reinit_cache() > regmap_debugfs_exit() > ... > regmap_debugfs_init() > So, set debugfs_name to NULL after it is freed. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git for-next Thanks! [1/1] driver: regmap: set debugfs_name to NULL after it is freed commit: ffe96a97642021e96ff27b29710401590ec19a5d All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark