Dan Carpenter f6bcb4c7f3
regmap: debugfs: Fix a reversed if statement in regmap_debugfs_init()
This code will leak "map->debugfs_name" because the if statement is
reversed so it only frees NULL pointers instead of non-NULL.  In
fact the if statement is not required and should just be removed
because kfree() accepts NULL pointers.

Fixes: cffa4b2122f5 ("regmap: debugfs: Fix a memory leak when calling regmap_attach_dev")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/X/RQpfAwRdLg0GqQ@mwanda
Signed-off-by: Mark Brown <broonie@kernel.org>
2021-01-05 14:34:41 +00:00
..
2020-12-09 19:29:47 +01:00
2020-07-31 08:17:52 +02:00
2018-07-07 17:54:29 +02:00
2017-12-11 08:50:05 +01:00
2020-12-04 12:23:25 +01:00
2020-12-04 12:23:25 +01:00
2020-12-09 19:10:20 +01:00