Re: [PATCH V2] drivers: regmap: regcache-rbtree.c: Fix overlapping rbnodes.

2013-08-21 Thread Mark Brown
On Wed, Aug 21, 2013 at 05:37:22PM +0200, David Jander wrote: > Avoid overlapping register regions by making the initial blklen of a new > node 1. If a register write occurs to a yet uncached register, that is > lower than but near an existing node's base_reg, a new node is created > and it's

[PATCH V2] drivers: regmap: regcache-rbtree.c: Fix overlapping rbnodes.

2013-08-21 Thread David Jander
Avoid overlapping register regions by making the initial blklen of a new node 1. If a register write occurs to a yet uncached register, that is lower than but near an existing node's base_reg, a new node is created and it's blklen is set to an arbitrary value (sizeof(*rbnode)). That may cause this

[PATCH V2] drivers: regmap: regcache-rbtree.c: Fix overlapping rbnodes.

2013-08-21 Thread David Jander
Avoid overlapping register regions by making the initial blklen of a new node 1. If a register write occurs to a yet uncached register, that is lower than but near an existing node's base_reg, a new node is created and it's blklen is set to an arbitrary value (sizeof(*rbnode)). That may cause this

Re: [PATCH V2] drivers: regmap: regcache-rbtree.c: Fix overlapping rbnodes.

2013-08-21 Thread Mark Brown
On Wed, Aug 21, 2013 at 05:37:22PM +0200, David Jander wrote: Avoid overlapping register regions by making the initial blklen of a new node 1. If a register write occurs to a yet uncached register, that is lower than but near an existing node's base_reg, a new node is created and it's blklen