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

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