linux/drivers/base/regmap
Lars-Peter Clausen c2b1ecd13c regmap: Do not call regcache_exit from regcache_lzo_init error path
Calling regcache_exit from regcache_lzo_init is first of all a layering
violation and secondly will cause double frees. regcache_exit will free buffers
allocated by the core, but the core will also free the same buffers when the
cacheops init callback returns an error. Thus we end up with a double free.
Fix this by not calling regcache_exit but only free those buffers which, have
been allocated in this function.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2011-11-15 19:22:59 +00:00
..
internal.h regmap: Track if the register cache is dirty and suppress unneeded syncs 2011-11-08 11:38:15 +00:00
Kconfig regmap: Add a reusable irq_chip for regmap based interrupt controllers 2011-11-08 11:29:48 +00:00
Makefile Merge branches 'regmap/irq' and 'regmap/cache' into regmap-next 2011-11-08 14:16:06 +00:00
regcache-indexed.c regmap: Return a sensible error code if we fail to read the cache 2011-10-10 10:24:03 +01:00
regcache-lzo.c regmap: Do not call regcache_exit from regcache_lzo_init error path 2011-11-15 19:22:59 +00:00
regcache-rbtree.c regmap: Do not call regcache_exit from regcache_rbtree_init error path 2011-11-15 19:22:59 +00:00
regcache.c regmap: Fix memory leak in regcache_init error path 2011-11-14 21:46:25 +00:00
regmap-debugfs.c regmap: Include the last register in debugfs output 2011-09-05 10:58:31 -07:00
regmap-i2c.c regmap: Remove redundant owner field from the bus type struct 2011-09-05 10:57:04 -07:00
regmap-irq.c regmap: Add a reusable irq_chip for regmap based interrupt controllers 2011-11-08 11:29:48 +00:00
regmap-spi.c Merge branch 'for-linus' of git://opensource.wolfsonmicro.com/regmap 2011-10-25 13:57:45 +02:00
regmap.c regmap: return ERR_PTR instead of NULL in regmap_init 2011-11-14 21:44:45 +00:00