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
- Lines: 10
- Date:
Sun May 18 17:10:38 1997
- Orig file:
v2.1.39/linux/fs/locks.c
- Orig date:
Tue May 13 22:41:14 1997
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