Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 14615
b: refs/heads/master
c: 86e07ce
h: refs/heads/master
i:
  14613: f3b7cb2
  14611: ddb1d4b
  14607: c0a3932
v: v3
  • Loading branch information
David Gibson authored and Linus Torvalds committed Nov 22, 2005
1 parent d718d55 commit 54a47b5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f3d48f0373c14a6203202f7b1dfc7b0d8aaf6ed2
refs/heads/master: 86e07ce71a8aad5074f7316f9b297d2137630283
16 changes: 8 additions & 8 deletions trunk/fs/compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ asmlinkage long compat_sys_statfs(const char __user *path, struct compat_statfs
if (!error) {
struct kstatfs tmp;
error = vfs_statfs(nd.dentry->d_inode->i_sb, &tmp);
if (!error && put_compat_statfs(buf, &tmp))
error = -EFAULT;
if (!error)
error = put_compat_statfs(buf, &tmp);
path_release(&nd);
}
return error;
Expand All @@ -186,8 +186,8 @@ asmlinkage long compat_sys_fstatfs(unsigned int fd, struct compat_statfs __user
if (!file)
goto out;
error = vfs_statfs(file->f_dentry->d_inode->i_sb, &tmp);
if (!error && put_compat_statfs(buf, &tmp))
error = -EFAULT;
if (!error)
error = put_compat_statfs(buf, &tmp);
fput(file);
out:
return error;
Expand Down Expand Up @@ -236,8 +236,8 @@ asmlinkage long compat_sys_statfs64(const char __user *path, compat_size_t sz, s
if (!error) {
struct kstatfs tmp;
error = vfs_statfs(nd.dentry->d_inode->i_sb, &tmp);
if (!error && put_compat_statfs64(buf, &tmp))
error = -EFAULT;
if (!error)
error = put_compat_statfs64(buf, &tmp);
path_release(&nd);
}
return error;
Expand All @@ -257,8 +257,8 @@ asmlinkage long compat_sys_fstatfs64(unsigned int fd, compat_size_t sz, struct c
if (!file)
goto out;
error = vfs_statfs(file->f_dentry->d_inode->i_sb, &tmp);
if (!error && put_compat_statfs64(buf, &tmp))
error = -EFAULT;
if (!error)
error = put_compat_statfs64(buf, &tmp);
fput(file);
out:
return error;
Expand Down

0 comments on commit 54a47b5

Please sign in to comment.