Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54676
b: refs/heads/master
c: 9d0633c
h: refs/heads/master
v: v3
  • Loading branch information
John Johansen authored and Linus Torvalds committed May 8, 2007
1 parent aa43c84 commit 258d110
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1e8123fdeda6b2b9e96f2ec56e7bed27a303d3eb
refs/heads/master: 9d0633cfedde484d30eef869f749c04709ab3e42
7 changes: 2 additions & 5 deletions trunk/fs/proc/proc_sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -429,11 +429,8 @@ static int proc_sys_setattr(struct dentry *dentry, struct iattr *attr)
return -EPERM;

error = inode_change_ok(inode, attr);
if (!error) {
error = security_inode_setattr(dentry, attr);
if (!error)
error = inode_setattr(inode, attr);
}
if (!error)
error = inode_setattr(inode, attr);

return error;
}
Expand Down

0 comments on commit 258d110

Please sign in to comment.