summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Liu <lliubbo@gmail.com>2012-10-23 14:45:57 +0800
committerMarek Szyprowski <m.szyprowski@samsung.com>2012-10-23 14:05:33 +0200
commita1f102136538553a9488c713a336065ebb567542 (patch)
tree98574531f507f2100940e9dc355d0af3048862a3
parent5e97f3f918c27c68c092bdca7917266615aec62f (diff)
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>
-rw-r--r--mm/page_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index bb90971182bd..b0012ab372a4 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -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)