Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186312
b: refs/heads/master
c: 12bac0d
h: refs/heads/master
v: v3
  • Loading branch information
Alexey Dobriyan authored and Linus Torvalds committed Mar 6, 2010
1 parent 86c4076 commit 67a3f75
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: e17a5765f20d1219c3f05eb17aab11671978e0ec
refs/heads/master: 12bac0d9f4dbf3445a0319beee848d15fa32775e
8 changes: 6 additions & 2 deletions trunk/fs/proc/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,10 @@ static int __xlate_proc_name(const char *name, struct proc_dir_entry **ret,
if (proc_match(len, cp, de))
break;
}
if (!de)
if (!de) {
WARN(1, "name '%s'\n", name);
return -ENOENT;
}
cp += len + 1;
}
*residual = cp;
Expand Down Expand Up @@ -818,8 +820,10 @@ void remove_proc_entry(const char *name, struct proc_dir_entry *parent)
}
}
spin_unlock(&proc_subdir_lock);
if (!de)
if (!de) {
WARN(1, "name '%s'\n", name);
return;
}

spin_lock(&de->pde_unload_lock);
/*
Expand Down

0 comments on commit 67a3f75

Please sign in to comment.