Skip to content

Commit

Permalink
mm: cma: alloc_contig_range: return early for err path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bob Liu authored and Marek Szyprowski committed Oct 23, 2012
1 parent 5e97f3f commit a1f1021
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a1f1021

Please sign in to comment.