summaryrefslogtreecommitdiffstats
path: root/mm/vmalloc.c
diff options
context:
space:
mode:
authorWen Yang2017-09-07 01:24:06 +0200
committerLinus Torvalds2017-09-07 02:27:29 +0200
commit88d6ac40c1c6b2334046d3f89f1911a3c8febd4c (patch)
tree15b853c5e0a033d0b69ccfb28b3fbdb30baad430 /mm/vmalloc.c
parentmm, hugetlb: do not allocate non-migrateable gigantic pages from movable zones (diff)
downloadkernel-qcow2-linux-88d6ac40c1c6b2334046d3f89f1911a3c8febd4c.tar.gz
kernel-qcow2-linux-88d6ac40c1c6b2334046d3f89f1911a3c8febd4c.tar.xz
kernel-qcow2-linux-88d6ac40c1c6b2334046d3f89f1911a3c8febd4c.zip
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/1501751520-2598-1-git-send-email-wen.yang99@zte.com.cn Signed-off-by: Wen Yang <wen.yang99@zte.com.cn> Reviewed-by: Jiang Biao <jiang.biao2@zte.com.cn> Suggested-by: Vlastimil Babka <vbabka@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/vmalloc.c')
0 files changed, 0 insertions, 0 deletions