patch-2.3.8 linux/fs/locks.c
Next file: linux/include/asm-alpha/atomic.h
Previous file: linux/fs/ext2/truncate.c
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Tue Jun 22 10:45:40 1999
- Orig file:
v2.3.7/linux/fs/locks.c
- Orig date:
Tue May 11 14:37:40 1999
diff -u --recursive --new-file v2.3.7/linux/fs/locks.c linux/fs/locks.c
@@ -512,7 +512,9 @@
while ((fl = *before) != NULL) {
if ((fl->fl_flags & FL_FLOCK) && fl->fl_file == filp) {
int (*lock)(struct file *, int, struct file_lock *);
- lock = filp->f_op->lock;
+ lock = NULL;
+ if (filp->f_op)
+ lock = filp->f_op->lock;
if (lock) {
file_lock = *fl;
file_lock.fl_type = F_UNLCK;
FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen (who was at: [email protected])