patch-2.4.0-test2 linux/mm/mmap.c
Next file: linux/mm/mremap.c
Previous file: linux/lib/vsprintf.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Wed Jun 21 07:24:29 2000
- Orig file:
v2.4.0-test1/linux/mm/mmap.c
- Orig date:
Wed Apr 26 16:34:09 2000
diff -u --recursive --new-file v2.4.0-test1/linux/mm/mmap.c linux/mm/mmap.c
@@ -320,6 +320,8 @@
goto unmap_and_free_vma;
} else if (flags & MAP_SHARED) {
error = map_zero_setup(vma);
+ if (error)
+ goto free_vma;
}
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)