linux/drivers/base/regmap
Lars-Peter Clausen 0825465c93 regmap: regcache-rbtree: Fix present bitmap resize
commit 328f494d95 upstream.

When inserting a new register into a block at the lower end the present
bitmap is currently shifted into the wrong direction. The effect of this is
that the bitmap becomes corrupted and registers which are present might be
reported as not present and vice versa.

Fix this by shifting left rather than right.

Fixes: 472fdec7380c("regmap: rbtree: Reduce number of nodes, take 2")
Reported-by: Daniel Baluta <daniel.baluta@gmail.com>
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2015-04-13 14:02:59 +02:00
..
internal.h Merge remote-tracking branch 'regmap/topic/field' into regmap-next 2013-10-28 13:01:33 -07:00
Kconfig regmap: add SPMI support 2013-10-28 12:51:43 -07:00
Makefile regmap: add SPMI support 2013-10-28 12:51:43 -07:00
regcache-flat.c regmap: flat: Add flat cache type 2013-01-02 10:58:53 +00:00
regcache-lzo.c regmap: cache: Pass the map rather than the word size when updating values 2013-03-04 10:30:27 +08:00
regcache-rbtree.c regmap: regcache-rbtree: Fix present bitmap resize 2015-04-13 14:02:59 +02:00
regcache.c regmap: Don't attempt block writes when syncing cache on single_rw devices 2014-10-05 14:52:17 -07:00
regmap-debugfs.c regmap: debugfs: fix possbile NULL pointer dereference 2014-10-30 09:38:20 -07:00
regmap-i2c.c i2c: Split I2C_M_NOSTART support out of I2C_FUNC_PROTOCOL_MANGLING 2012-05-30 10:55:34 +02:00
regmap-irq.c regmap: irq: Allow using zero value for ack_base 2013-12-16 20:50:13 +00:00
regmap-mmio.c regmap: use IS_ERR() to check clk_get() results 2013-11-26 13:16:31 +00:00
regmap-spi.c regmap: spi: Handle async writes of only one buffer 2013-10-14 22:09:26 +01:00
regmap-spmi.c regmap: add SPMI support 2013-10-28 12:51:43 -07:00
regmap.c regmap: fix kernel hang on regmap_bulk_write with zero val_count. 2014-11-21 09:23:06 -08:00