Messages in this thread | | | Date | Thu, 6 Jan 2022 17:24:49 +0000 | From | Mark Brown <> | Subject | Re: debugfs: Directory with parent 'regmap' already present! |
| |
On Thu, Jan 06, 2022 at 01:57:15PM -0300, Fabio Estevam wrote: > On Thu, Jan 6, 2022 at 9:07 AM Mark Brown <broonie@kernel.org> wrote:
> The duplicate "dummy-iomuxc-gpr@20e0000" comes from the lack of doing > a kfree(map->debugfs_name); > > Calling 'kfree(map->debugfs_name);' like this:
That doesn't sound like a good idea - if this does anything we must be looking at the data so only adding frees will only translate using the wrong data into a dereference of a freed pointer which seems worse. [unhandled content-type:application/pgp-signature] | |