patch-2.4.18 linux/mm/mmap.c
Next file: linux/mm/page_alloc.c
Previous file: linux/mm/memory.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Wed Feb 13 19:12:05 2002
- Orig file:
linux.orig/mm/mmap.c
- Orig date:
Mon Feb 18 20:18:40 2002
diff -Naur -X /home/marcelo/lib/dontdiff linux.orig/mm/mmap.c linux/mm/mmap.c
@@ -620,7 +620,7 @@
{
if (flags & MAP_FIXED) {
if (addr > TASK_SIZE - len)
- return -EINVAL;
+ return -ENOMEM;
if (addr & ~PAGE_MASK)
return -EINVAL;
return addr;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)