patch-2.0.18 linux/mm/mmap.c
Next file: linux/mm/page_io.c
Previous file: linux/mm/filemap.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Wed Sep 4 10:43:08 1996
- Orig file:
v2.0.17/linux/mm/mmap.c
- Orig date:
Mon Aug 5 10:13:55 1996
diff -u --recursive --new-file v2.0.17/linux/mm/mmap.c linux/mm/mmap.c
@@ -144,7 +144,7 @@
if ((len = PAGE_ALIGN(len)) == 0)
return addr;
- if (addr > TASK_SIZE || len > TASK_SIZE || addr > TASK_SIZE-len)
+ if (len > TASK_SIZE || addr > TASK_SIZE-len)
return -EINVAL;
/* offset overflow? */
@@ -198,8 +198,6 @@
if (flags & MAP_FIXED) {
if (addr & ~PAGE_MASK)
- return -EINVAL;
- if (len > TASK_SIZE || addr > TASK_SIZE - len)
return -EINVAL;
} else {
addr = get_unmapped_area(addr, len);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov