Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 322932
b: refs/heads/master
c: 6bf6104
h: refs/heads/master
v: v3
  • Loading branch information
Francesco Ruggeri authored and Linus Torvalds committed Sep 17, 2012
1 parent 28c0145 commit a3fb2d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 5698bd757d55b1bb87edd1a9744ab09c142abfc2
refs/heads/master: 6bf6104573482570f7103d3e5ddf9574db43a363
5 changes: 2 additions & 3 deletions trunk/fs/proc/proc_sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -462,9 +462,6 @@ static struct dentry *proc_sys_lookup(struct inode *dir, struct dentry *dentry,

err = ERR_PTR(-ENOMEM);
inode = proc_sys_make_inode(dir->i_sb, h ? h : head, p);
if (h)
sysctl_head_finish(h);

if (!inode)
goto out;

Expand All @@ -473,6 +470,8 @@ static struct dentry *proc_sys_lookup(struct inode *dir, struct dentry *dentry,
d_add(dentry, inode);

out:
if (h)
sysctl_head_finish(h);
sysctl_head_finish(head);
return err;
}
Expand Down

0 comments on commit a3fb2d7

Please sign in to comment.