diff options
| author | Stephen Warren <[email protected]> | 2012-04-04 21:48:33 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2012-04-04 22:22:15 +0000 |
| commit | c04c1b9ee8f30c7a3a25e20e406247003f634ebe (patch) | |
| tree | c8f1de34051bce402ee5be5d6dfadc4bc7e47ae1 /lib/dma-debug.c | |
| parent | regmap: Export regcache_sync_region() (diff) | |
| download | kernel-c04c1b9ee8f30c7a3a25e20e406247003f634ebe.tar.gz kernel-c04c1b9ee8f30c7a3a25e20e406247003f634ebe.zip | |
regmap: prevent division by zero in rbtree_show
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 <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Cc: [email protected]
Diffstat (limited to 'lib/dma-debug.c')
0 files changed, 0 insertions, 0 deletions
