summaryrefslogtreecommitdiff
path: root/fs/proc/generic.c
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@quicinc.com>2017-06-08 19:03:19 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2017-06-08 19:03:18 -0700
commitbc2254655174adf0c5cca54937b2969855314eb3 (patch)
tree0bd44b2012efbbbb3244dccd19d543018b7f18db /fs/proc/generic.c
parent9725c4d90bee3b0be78bb1fdc084df1ec08d7d24 (diff)
parent2025064255a87606e2da561de77dcd68daf8b26d (diff)
Merge "Merge branch 'android-4.4@9bc4622' into branch 'msm-4.4'"
Diffstat (limited to 'fs/proc/generic.c')
-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 ff3ffc76a937..3773335791da 100644
--- a/fs/proc/generic.c
+++ b/fs/proc/generic.c
@@ -469,6 +469,7 @@ struct proc_dir_entry *proc_create_mount_point(const char *name)
ent->data = NULL;
ent->proc_fops = NULL;
ent->proc_iops = NULL;
+ parent->nlink++;
if (proc_register(parent, ent) < 0) {
kfree(ent);
parent->nlink--;