summaryrefslogtreecommitdiffstats
path: root/sys/fs/procfs/procfs_ctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fs/procfs/procfs_ctl.c')
-rw-r--r--sys/fs/procfs/procfs_ctl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/fs/procfs/procfs_ctl.c b/sys/fs/procfs/procfs_ctl.c
index 154eaa6..3a73980 100644
--- a/sys/fs/procfs/procfs_ctl.c
+++ b/sys/fs/procfs/procfs_ctl.c
@@ -230,8 +230,10 @@ out:
pp = pfind(p->p_oppid);
PROC_LOCK(p);
- if (pp)
+ if (pp) {
+ PROC_UNLOCK(pp);
proc_reparent(p, pp);
+ }
} else
PROC_LOCK(p);
p->p_oppid = 0;
OpenPOWER on IntegriCloud