fs: Give dentry to inode_change_ok() instead of inode
[pandora-kernel.git] / fs / proc / base.c
index 402976a..2c38a3e 100644 (file)
@@ -558,7 +558,7 @@ int proc_setattr(struct dentry *dentry, struct iattr *attr)
        if (attr->ia_valid & ATTR_MODE)
                return -EPERM;
 
-       error = inode_change_ok(inode, attr);
+       error = setattr_prepare(dentry, attr);
        if (error)
                return error;