aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/generic.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/proc/generic.c')
-rw-r--r--fs/proc/generic.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/fs/proc/generic.c b/fs/proc/generic.c
index ce2d95477701..08f4d71dacd7 100644
--- a/fs/proc/generic.c
+++ b/fs/proc/generic.c
@@ -312,8 +312,10 @@ static int __xlate_proc_name(const char *name, struct proc_dir_entry **ret,
312 if (proc_match(len, cp, de)) 312 if (proc_match(len, cp, de))
313 break; 313 break;
314 } 314 }
315 if (!de) 315 if (!de) {
316 WARN(1, "name '%s'\n", name);
316 return -ENOENT; 317 return -ENOENT;
318 }
317 cp += len + 1; 319 cp += len + 1;
318 } 320 }
319 *residual = cp; 321 *residual = cp;
@@ -818,8 +820,10 @@ void remove_proc_entry(const char *name, struct proc_dir_entry *parent)
818 } 820 }
819 } 821 }
820 spin_unlock(&proc_subdir_lock); 822 spin_unlock(&proc_subdir_lock);
821 if (!de) 823 if (!de) {
824 WARN(1, "name '%s'\n", name);
822 return; 825 return;
826 }
823 827
824 spin_lock(&de->pde_unload_lock); 828 spin_lock(&de->pde_unload_lock);
825 /* 829 /*