diff options
Diffstat (limited to 'fs/proc/proc_sysctl.c')
-rw-r--r-- | fs/proc/proc_sysctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c index fdda62e6115e..0dea606074c7 100644 --- a/fs/proc/proc_sysctl.c +++ b/fs/proc/proc_sysctl.c | |||
@@ -753,7 +753,7 @@ static int proc_sys_setattr(struct dentry *dentry, struct iattr *attr) | |||
753 | if (attr->ia_valid & (ATTR_MODE | ATTR_UID | ATTR_GID)) | 753 | if (attr->ia_valid & (ATTR_MODE | ATTR_UID | ATTR_GID)) |
754 | return -EPERM; | 754 | return -EPERM; |
755 | 755 | ||
756 | error = inode_change_ok(inode, attr); | 756 | error = setattr_prepare(dentry, attr); |
757 | if (error) | 757 | if (error) |
758 | return error; | 758 | return error; |
759 | 759 | ||