Skip to content
Commit ea4039a3 authored by Hillf Danton's avatar Hillf Danton Committed by Linus Torvalds
Browse files

hugetlb: release pages in the error path of hugetlb_cow()



If we fail to prepare an anon_vma, the {new, old}_page should be released,
or they will leak.

Signed-off-by: default avatarHillf Danton <dhillf@gmail.com>
Reviewed-by: default avatarAndrea Arcangeli <aarcange@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Johannes Weiner <jweiner@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 66e13e66
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment