From: Lars-Peter Clausen Date: Sat, 7 Mar 2015 16:10:01 +0000 (+0100) Subject: regmap: regcache-rbtree: Fix present bitmap resize X-Git-Tag: omap-for-v4.1/fixes-rc1~314^2^3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=328f494d95aac8bd4896aea2328bc281053bcb71;p=pandora-kernel.git regmap: regcache-rbtree: Fix present bitmap resize 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 Signed-off-by: Lars-Peter Clausen Signed-off-by: Mark Brown Cc: stable@vger.kernel.org --- Reading git-diff-tree failed