Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
regmap: regcache-rbtree: Fix present bitmap resize
[ Upstream commit 328f494 ] 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: 472fdec("regmap: rbtree: Reduce number of nodes, take 2") Reported-by: Daniel Baluta <[email protected]> Signed-off-by: Lars-Peter Clausen <[email protected]> Signed-off-by: Mark Brown <[email protected]> Cc: [email protected] Signed-off-by: Sasha Levin <[email protected]>
- Loading branch information