patch-2.1.66 linux/mm/filemap.c

Next file: linux/net/netlink.c
Previous file: linux/kernel/ksyms.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.65/linux/mm/filemap.c linux/mm/filemap.c
@@ -1220,9 +1220,7 @@
 static int msync_interval(struct vm_area_struct * vma,
 	unsigned long start, unsigned long end, int flags)
 {
-	if (!vma->vm_dentry)
-		return 0;
-	if (vma->vm_ops->sync) {
+	if (vma->vm_dentry && vma->vm_ops && vma->vm_ops->sync) {
 		int error;
 		error = vma->vm_ops->sync(vma, start, end-start, flags);
 		if (!error && (flags & MS_SYNC)) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov