summaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2021-04-07 22:22:39 +0200
committerMark Brown <broonie@kernel.org>2021-04-07 22:22:39 +0200
commit78d889705732ba856feee4d7bfa74a12fe48c480 (patch)
treea0c51ae3073f0e8bbe4d0f2f615a7411c9151150 /drivers/base
parentLinux 5.12-rc6 (diff)
parentregmap: set debugfs_name to NULL after it is freed (diff)
downloadlinux-78d889705732ba856feee4d7bfa74a12fe48c480.tar.xz
linux-78d889705732ba856feee4d7bfa74a12fe48c480.zip
Merge remote-tracking branch 'regmap/for-5.12' into regmap-linus
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/regmap/regmap-debugfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/base/regmap/regmap-debugfs.c b/drivers/base/regmap/regmap-debugfs.c
index ff2ee87987c7..211a335a608d 100644
--- a/drivers/base/regmap/regmap-debugfs.c
+++ b/drivers/base/regmap/regmap-debugfs.c
@@ -660,6 +660,7 @@ void regmap_debugfs_exit(struct regmap *map)
regmap_debugfs_free_dump_cache(map);
mutex_unlock(&map->cache_lock);
kfree(map->debugfs_name);
+ map->debugfs_name = NULL;
} else {
struct regmap_debugfs_node *node, *tmp;