patch-2.1.40 linux/fs/locks.c

Next file: linux/fs/proc/array.c
Previous file: linux/fs/binfmt_elf.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.39/linux/fs/locks.c linux/fs/locks.c
@@ -366,8 +366,7 @@
 		do {
 			if (vma->vm_flags & VM_MAYSHARE)
 				return (-EAGAIN);
-			vma = vma->vm_next_share;
-		} while (vma != inode->i_mmap);
+		} while ((vma = vma->vm_next_share) != NULL);
 	}
 
 	if (copy_from_user(&flock, l, sizeof(flock)))

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