aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/proc/generic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/proc/generic.c b/fs/proc/generic.c
index 5f2dc2032c79..6047471575bb 100644
--- a/fs/proc/generic.c
+++ b/fs/proc/generic.c
@@ -471,6 +471,7 @@ struct proc_dir_entry *proc_create_mount_point(const char *name)
471 ent->data = NULL; 471 ent->data = NULL;
472 ent->proc_fops = NULL; 472 ent->proc_fops = NULL;
473 ent->proc_iops = NULL; 473 ent->proc_iops = NULL;
474 parent->nlink++;
474 if (proc_register(parent, ent) < 0) { 475 if (proc_register(parent, ent) < 0) {
475 kfree(ent); 476 kfree(ent);
476 parent->nlink--; 477 parent->nlink--;