diff options
author | Wen Yang <[email protected]> | 2017-09-06 16:24:06 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2017-09-06 17:27:29 -0700 |
commit | 88d6ac40c1c6b2334046d3f89f1911a3c8febd4c (patch) | |
tree | 15b853c5e0a033d0b69ccfb28b3fbdb30baad430 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | 79b63f12abcbbd2caf7064b294af648a87de07ff (diff) |
mm/vmstat: fix divide error at __fragmentation_index
When order is -1 or too big, *1UL << order* will be 0, which will cause
a divide error. Although it seems that all callers of
__fragmentation_index() will only do so with a valid order, the patch
can make it more robust.
Should prevent reoccurrences of
https://bugzilla.kernel.org/show_bug.cgi?id=196555
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Wen Yang <[email protected]>
Reviewed-by: Jiang Biao <[email protected]>
Suggested-by: Vlastimil Babka <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions