patch-2.1.51 linux/fs/open.c
Next file: linux/fs/pipe.c
Previous file: linux/fs/nfsd/export.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Sat Aug 16 09:55:26 1997
- Orig file:
v2.1.50/linux/fs/open.c
- Orig date:
Sun Jul 27 12:11:01 1997
diff -u --recursive --new-file v2.1.50/linux/fs/open.c linux/fs/open.c
@@ -53,9 +53,6 @@
int error;
lock_kernel();
- error = verify_area(VERIFY_WRITE, buf, sizeof(struct statfs));
- if (error)
- goto out;
if (fd >= NR_OPEN || !(file = current->files->fd[fd]))
error = -EBADF;
else if (!(dentry = file->f_dentry))
@@ -67,8 +64,7 @@
else if (!inode->i_sb->s_op->statfs)
error = -ENOSYS;
else
- inode->i_sb->s_op->statfs(inode->i_sb, buf, sizeof(struct statfs));
-out:
+ error = inode->i_sb->s_op->statfs(inode->i_sb, buf, sizeof(struct statfs));
unlock_kernel();
return error;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov