Re: [PATCH v2] regmap: debugfs: Fix handling of name string for debugfs init delays

2020-09-17 Thread Mark Brown
On Thu, 17 Sep 2020 13:08:28 +0100, Charles Keepax wrote: > In regmap_debugfs_init the initialisation of the debugfs is delayed > if the root node isn't ready yet. Most callers of regmap_debugfs_init > pass the name from the regmap_config, which is considered temporary > ie. may be unallocated

[PATCH v2] regmap: debugfs: Fix handling of name string for debugfs init delays

2020-09-17 Thread Charles Keepax
In regmap_debugfs_init the initialisation of the debugfs is delayed if the root node isn't ready yet. Most callers of regmap_debugfs_init pass the name from the regmap_config, which is considered temporary ie. may be unallocated after the regmap_init call returns. This leads to a potential use