lkml.org 
[lkml]   [2015]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] regmap: regcache-rbtree: Fix present bitmap resize
From
On Sat, Mar 7, 2015 at 6:10 PM, Lars-Peter Clausen <lars@metafoo.de> wrote:
> 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>

Thanks Lars! I confirm that this fixes the problem :).

Daniel.


\
 
 \ /
  Last update: 2015-03-07 19:01    [W:0.033 / U:0.388 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site