We aren't holding the hugetlb_lock so there is no need to unlock. Fixes: b27f11e5e675 ("mm, hugetlb: get rid of surplus page accounting tricks") Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> diff --git a/mm/hugetlb.c b/mm/hugetlb.c index ffcae114ceed..742a929f2311 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -1567,7 +1567,7 @@ static struct page *alloc_surplus_huge_page(struct hstate *h, gfp_t gfp_mask, page = alloc_fresh_huge_page(h, gfp_mask, nid, nmask); if (!page) - goto out_unlock; + return NULL; spin_lock(&hugetlb_lock); /* -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>