diff options
author | Xishi Qiu <qiuxishi@huawei.com> | 2016-04-01 23:31:20 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-04-02 00:03:37 +0200 |
commit | 6f25a14a7053b69917e2ebea0d31dd444cd31fd5 (patch) | |
tree | 48914967e96ffd5e054252cab541f15f768323ee /Documentation/coccinelle.txt | |
parent | include/linux/huge_mm.h: return NULL instead of false for pmd_trans_huge_lock() (diff) | |
download | linux-6f25a14a7053b69917e2ebea0d31dd444cd31fd5.tar.xz linux-6f25a14a7053b69917e2ebea0d31dd444cd31fd5.zip |
mm: fix invalid node in alloc_migrate_target()
It is incorrect to use next_node to find a target node, it will return
MAX_NUMNODES or invalid node. This will lead to crash in buddy system
allocation.
Fixes: c8721bbbdd36 ("mm: memory-hotplug: enable memory hotplug to handle hugepage")
Signed-off-by: Xishi Qiu <qiuxishi@huawei.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: Joonsoo Kim <js1304@gmail.com>
Cc: David Rientjes <rientjes@google.com>
Cc: "Laura Abbott" <lauraa@codeaurora.org>
Cc: Hui Zhu <zhuhui@xiaomi.com>
Cc: Wang Xiaoqiang <wangxq10@lzu.edu.cn>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/coccinelle.txt')
0 files changed, 0 insertions, 0 deletions