From: Bob Liu Date: Thu, 25 Oct 2012 20:37:56 +0000 (-0700) Subject: mm/page_alloc.c:alloc_contig_range(): return early for err path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=86a595f961360c9c31d00fb111dd09e5d5ba9a40;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mm/page_alloc.c: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 Cc: Ni zhan Chen Cc: Marek Szyprowski Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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)