]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm/page_alloc.c:alloc_contig_range(): return early for err path
authorBob Liu <lliubbo@gmail.com>
Thu, 25 Oct 2012 01:13:55 +0000 (12:13 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 25 Oct 2012 01:13:55 +0000 (12:13 +1100)
If start_isolate_page_range() failed, unset_migratetype_isolate() has been
done inside it.

Signed-off-by: Bob Liu <lliubbo@gmail.com>
Cc: Ni zhan Chen <nizhan.chen@gmail.com>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c

index bb90971182bd8c833e40f508e3c8b8677d6913c8..b0012ab372a45cac2067d75d3b91d34f2d4ad74b 100644 (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)