aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/proc/base.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c
index 0c2052c79243..ff9c131e6b30 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -347,11 +347,8 @@ static int proc_setattr(struct dentry *dentry, struct iattr *attr)
347 return -EPERM; 347 return -EPERM;
348 348
349 error = inode_change_ok(inode, attr); 349 error = inode_change_ok(inode, attr);
350 if (!error) { 350 if (!error)
351 error = security_inode_setattr(dentry, attr); 351 error = inode_setattr(inode, attr);
352 if (!error)
353 error = inode_setattr(inode, attr);
354 }
355 return error; 352 return error;
356} 353}
357 354