aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/proc/proc_sysctl.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c
index 20e8cbb34364..680c429bfa22 100644
--- a/fs/proc/proc_sysctl.c
+++ b/fs/proc/proc_sysctl.c
@@ -429,11 +429,8 @@ static int proc_sys_setattr(struct dentry *dentry, struct iattr *attr)
429 return -EPERM; 429 return -EPERM;
430 430
431 error = inode_change_ok(inode, attr); 431 error = inode_change_ok(inode, attr);
432 if (!error) { 432 if (!error)
433 error = security_inode_setattr(dentry, attr); 433 error = inode_setattr(inode, attr);
434 if (!error)
435 error = inode_setattr(inode, attr);
436 }
437 434
438 return error; 435 return error;
439} 436}