summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/fs/procfs/procfs_dbregs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/fs/procfs/procfs_dbregs.c b/sys/fs/procfs/procfs_dbregs.c
index 19e16dd..eb1991d 100644
--- a/sys/fs/procfs/procfs_dbregs.c
+++ b/sys/fs/procfs/procfs_dbregs.c
@@ -74,6 +74,7 @@ procfs_doprocdbregs(PFS_FILL_ARGS)
if (kl > uio->uio_resid)
kl = uio->uio_resid;
+ PHOLD(p);
if (kl < 0)
error = EINVAL;
else
@@ -86,6 +87,7 @@ procfs_doprocdbregs(PFS_FILL_ARGS)
else
error = proc_write_dbregs(FIRST_THREAD_IN_PROC(p), &r); /* XXXKSE */
}
+ PRELE(p);
uio->uio_offset = 0;
return (error);
OpenPOWER on IntegriCloud