Commit 11d3c5ea authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] fix pte_chain leak in do_no_page()

From: "V. Rajesh" <vrajesh@eecs.umich.edu>

Fix a rare pte_chain memory leak in do_no_page()
parent 3479607f
......@@ -1441,6 +1441,7 @@ do_no_page(struct mm_struct *mm, struct vm_area_struct *vma,
sequence = atomic_read(&mapping->truncate_count);
spin_unlock(&mm->page_table_lock);
page_cache_release(new_page);
pte_chain_free(pte_chain);
goto retry;
}
page_table = pte_offset_map(pmd, address);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment