projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e97f3f
)
mm: cma: alloc_contig_range: return early for err path
author
Bob Liu
<lliubbo@gmail.com>
Tue, 23 Oct 2012 06:45:57 +0000
(14:45 +0800)
committer
Marek Szyprowski
<m.szyprowski@samsung.com>
Tue, 23 Oct 2012 12:05:33 +0000
(14:05 +0200)
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>
mm/page_alloc.c
patch
|
blob
|
history
diff --git
a/mm/page_alloc.c
b/mm/page_alloc.c
index bb90971182bd8c833e40f508e3c8b8677d6913c8..b0012ab372a45cac2067d75d3b91d34f2d4ad74b 100644
(file)
--- 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)