diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-03-13 15:38:33 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-12 16:52:02 (GMT) |
commit | bbe2d01529084ebb9cc5361ef971ddfa34fdaf4c (patch) | |
tree | 9bba3aa668411e83eb28e43f8828110c52b3ad2e /net/sctp | |
parent | 5d05e0b8506e4ff27a23af6b552ab646192e2260 (diff) | |
download | linux-fsl-qoriq-bbe2d01529084ebb9cc5361ef971ddfa34fdaf4c.tar.xz |
regmap: cache Fix regcache-rbtree sync
commit 8abac3ba51b5525354e9b2ec0eed1c9e95c905d9 upstream.
The last register block, which falls into the specified range, is not handled
correctly. The formula which calculates the number of register which should be
synced is inverse (and off by one). E.g. if all registers in that block should
be synced only one is synced, and if only one should be synced all (but one) are
synced. To calculate the number of registers that need to be synced we need to
subtract the number of the first register in the block from the max register
number and add one. This patch updates the code accordingly.
The issue was introduced in commit ac8d91c ("regmap: Supply ranges to the sync
operations").
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/sctp')
0 files changed, 0 insertions, 0 deletions