git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e466de0
)
regmap: prevent division by zero in rbtree_show
author
Stephen Warren
<swarren@nvidia.com>
Wed, 4 Apr 2012 21:48:33 +0000
(15:48 -0600)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Wed, 4 Apr 2012 22:22:15 +0000
(23:22 +0100)
If there are no nodes in the cache, nodes will be 0, so calculating
"registers / nodes" will cause division by zero.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@vger.kernel.org
No differences found