diff options
author | Ken Chen <kenchen@google.com> | 2007-07-24 03:44:00 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-24 21:24:59 +0200 |
commit | 5ab3ee7b1cd5c91eb2272764f9d7d1fe4749681e (patch) | |
tree | 82c1fbc5e3a41651d4c0d45cf13d85760708c184 /init/do_mounts.c | |
parent | minor gpio doc update (diff) | |
download | linux-5ab3ee7b1cd5c91eb2272764f9d7d1fe4749681e.tar.xz linux-5ab3ee7b1cd5c91eb2272764f9d7d1fe4749681e.zip |
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 <kenchen@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init/do_mounts.c')
0 files changed, 0 insertions, 0 deletions