Commit:     5ab3ee7b1cd5c91eb2272764f9d7d1fe4749681e
Parent:     be1ff386e768ee4fc19bb7da48cee4fc4cb4e75b
Author:     Ken Chen <[EMAIL PROTECTED]>
AuthorDate: Mon Jul 23 18:44:00 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Tue Jul 24 12:24:59 2007 -0700

    fix hugetlb page allocation leak
    dequeue_huge_page() has a serious memory leak upon hugetlb page
    allocation.  The for loop continues on allocating hugetlb pages out of
    all allowable zone, where this function is supposedly only dequeue one
    and only one pages.
    Fixed it by breaking out of the for loop once a hugetlb page is found.
    Signed-off-by: Ken Chen <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 mm/hugetlb.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index f127940..d7ca59d 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -84,6 +84,7 @@ static struct page *dequeue_huge_page(struct vm_area_struct 
+                       break;
        return page;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to