linux/drivers/base/regmap
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: cffa4b2122 ("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
..
Kconfig regmap/SoundWire: sdw: add support for SoundWire 1.2 MBQ 2020-11-26 13:19:59 +00:00
Makefile regmap/SoundWire: sdw: add support for SoundWire 1.2 MBQ 2020-11-26 13:19:59 +00:00
internal.h Merge remote-tracking branch 'regmap/for-5.10' into regmap-next 2020-10-05 18:53:24 +01:00
regcache-flat.c
regcache-lzo.c
regcache-rbtree.c
regcache.c regmap: fix page selection for noinc writes 2020-09-21 20:58:02 +01:00
regmap-ac97.c
regmap-debugfs.c regmap: debugfs: Fix a reversed if statement in regmap_debugfs_init() 2021-01-05 14:34:41 +00:00
regmap-i2c.c
regmap-i3c.c
regmap-irq.c regmap: irq: Convert to use irq_domain_create_legacy() 2020-11-07 11:33:46 +01:00
regmap-mmio.c regmap: mmio: add config option to allow relaxed MMIO accesses 2020-10-26 19:54:59 +00:00
regmap-sccb.c
regmap-sdw-mbq.c regmap/SoundWire: sdw: add support for SoundWire 1.2 MBQ 2020-11-26 13:19:59 +00:00
regmap-sdw.c regmap: sdw: add required header files 2020-11-26 13:08:14 +00:00
regmap-slimbus.c
regmap-spi-avmm.c regmap: add Intel SPI Slave to AVMM Bus Bridge support 2020-08-26 19:46:38 +01:00
regmap-spi.c
regmap-spmi.c
regmap-w1.c
regmap.c regmap: Fix order of regmap write log 2020-11-12 16:05:17 +00:00
trace.h regmap: Remove duplicate `type` field from regmap `regcache_sync` trace event 2020-11-24 14:14:00 +00:00