Re: debugfs: Directory with parent 'regmap' already present!

From: Mark Brown
Date: Thu Jan 06 2022 - 12:25:01 EST


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@xxxxxxxxxx> 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.

Attachment: signature.asc
Description: PGP signature