X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=mm%2Fmemory_hotplug.c;h=962927309b6e963fa05a0acf09608c2ec6cef761;hb=05fd007e46296afb24d15c7d589d535e5a5b9d5c;hp=9d29ba0f7192b6c71afc3e2e6bc6b9beff6ed09f;hpb=72ec94560d7ee1d3a61d5904fd9a5bf68bf3b11a;p=cascardo%2Flinux.git diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 9d29ba0f7192..962927309b6e 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -1945,7 +1945,9 @@ repeat: * dissolve free hugepages in the memory block before doing offlining * actually in order to make hugetlbfs's object counting consistent. */ - dissolve_free_huge_pages(start_pfn, end_pfn); + ret = dissolve_free_huge_pages(start_pfn, end_pfn); + if (ret) + goto failed_removal; /* check again */ offlined_pages = check_pages_isolated(start_pfn, end_pfn); if (offlined_pages < 0) {