]> git.pld-linux.org Git - packages/kernel.git/blame - 2.6-mremap-lkml.patch
- added description of djurban's branch
[packages/kernel.git] / 2.6-mremap-lkml.patch
CommitLineData
f892c590 1===== mm/mremap.c 1.33 vs edited =====
2--- 1.33/mm/mremap.c Sat Aug 23 23:50:10 2003
3+++ edited/mm/mremap.c Mon Jan 5 08:34:21 2004
4@@ -315,6 +315,10 @@
5 old_len = PAGE_ALIGN(old_len);
6 new_len = PAGE_ALIGN(new_len);
7
8+ /* Don't allow the degenerate cases */
9+ if (!(old_len | new_len))
10+ goto out;
11+
12 /* new_addr is only valid if MREMAP_FIXED is specified */
13 if (flags & MREMAP_FIXED) {
14 if (new_addr & ~PAGE_MASK)
This page took 0.03214 seconds and 4 git commands to generate.