Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 295472
b: refs/heads/master
c: 0eb97f3
h: refs/heads/master
v: v3
  • Loading branch information
Eric W. Biederman committed Feb 2, 2012
1 parent 8c8cca9 commit f880e89
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 51f72f4a0f92e4abde33a8bca0fac9667575d035
refs/heads/master: 0eb97f38d2bfaea289b44c5140a7b04e7b369bad
5 changes: 4 additions & 1 deletion trunk/fs/proc/proc_sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -869,6 +869,7 @@ static struct ctl_dir *get_subdir(struct ctl_dir *dir,
{
struct ctl_table_set *set = dir->header.set;
struct ctl_dir *subdir, *new = NULL;
int err;

spin_lock(&sysctl_lock);
subdir = find_subdir(dir, name, namelen);
Expand All @@ -890,7 +891,9 @@ static struct ctl_dir *get_subdir(struct ctl_dir *dir,
if (PTR_ERR(subdir) != -ENOENT)
goto failed;

if (insert_header(dir, &new->header))
err = insert_header(dir, &new->header);
subdir = ERR_PTR(err);
if (err)
goto failed;
subdir = new;
found:
Expand Down

0 comments on commit f880e89

Please sign in to comment.