X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=fs%2Fcompat.c;h=2ce4456aad309eebc3df3c200178561046d87093;hb=90a5ad52bf2ce54aa7153735dc4488f00c050e54;hp=ee80ff341d37655d40cac120104a1cbd96f0fbcb;hpb=70ec75c5b8e0bda7a16fb387f91e08545f379a0e;p=~andy%2Flinux diff --git a/fs/compat.c b/fs/compat.c index ee80ff341d3..2ce4456aad3 100644 --- a/fs/compat.c +++ b/fs/compat.c @@ -241,10 +241,10 @@ asmlinkage long compat_sys_statfs(const char __user *path, struct compat_statfs error = user_path_walk(path, &nd); if (!error) { struct kstatfs tmp; - error = vfs_statfs(nd.dentry, &tmp); + error = vfs_statfs(nd.path.dentry, &tmp); if (!error) error = put_compat_statfs(buf, &tmp); - path_release(&nd); + path_put(&nd.path); } return error; } @@ -309,10 +309,10 @@ asmlinkage long compat_sys_statfs64(const char __user *path, compat_size_t sz, s error = user_path_walk(path, &nd); if (!error) { struct kstatfs tmp; - error = vfs_statfs(nd.dentry, &tmp); + error = vfs_statfs(nd.path.dentry, &tmp); if (!error) error = put_compat_statfs64(buf, &tmp); - path_release(&nd); + path_put(&nd.path); } return error; } @@ -702,9 +702,6 @@ static int do_nfs4_super_data_conv(void *raw_data) real->flags = raw->flags; real->version = raw->version; } - else { - return -EINVAL; - } return 0; }