patch-1.3.45 linux/fs/read_write.c
Next file: linux/fs/sysv/balloc.c
Previous file: linux/fs/open.c
Back to the patch index
Back to the overall index
- Lines: 10
- Date:
Mon Nov 27 09:14:46 1995
- Orig file:
v1.3.44/linux/fs/read_write.c
- Orig date:
Mon Oct 23 18:02:18 1995
diff -u --recursive --new-file v1.3.44/linux/fs/read_write.c linux/fs/read_write.c
@@ -138,7 +138,9 @@
error = verify_area(VERIFY_READ,buf,count);
if (error)
return error;
+ down(&inode->i_sem);
written = file->f_op->write(inode,file,buf,count);
+ up(&inode->i_sem);
/*
* If data has been written to the file, remove the setuid and
* the setgid bits
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this