提交 a1f10213 编写于 作者: B Bob Liu 提交者: Marek Szyprowski

mm: cma: alloc_contig_range: return early for err path

If start_isolate_page_range() failed, unset_migratetype_isolate() has been
done inside it.
Signed-off-by: NBob Liu <lliubbo@gmail.com>
Signed-off-by: NMarek Szyprowski <m.szyprowski@samsung.com>
上级 5e97f3f9
......@@ -5825,7 +5825,7 @@ int alloc_contig_range(unsigned long start, unsigned long end,
ret = start_isolate_page_range(pfn_max_align_down(start),
pfn_max_align_up(end), migratetype);
if (ret)
goto done;
return ret;
ret = __alloc_contig_migrate_range(&cc, start, end);
if (ret)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册