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: Bob Liu <lliubbo@gmail.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
This commit is contained in:
Bob Liu 2012-10-23 14:45:57 +08:00 committed by Marek Szyprowski
parent 5e97f3f918
commit a1f1021365
1 changed files with 1 additions and 1 deletions

View File

@ -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)