summaryrefslogtreecommitdiffstats
path: root/sys/fs/procfs/procfs_fpregs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fs/procfs/procfs_fpregs.c')
-rw-r--r--sys/fs/procfs/procfs_fpregs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/fs/procfs/procfs_fpregs.c b/sys/fs/procfs/procfs_fpregs.c
index 9d10714..93356ce 100644
--- a/sys/fs/procfs/procfs_fpregs.c
+++ b/sys/fs/procfs/procfs_fpregs.c
@@ -57,12 +57,12 @@ procfs_doprocfpregs(PFS_FILL_ARGS)
struct fpreg r;
PROC_LOCK(p);
+ KASSERT(p->p_lock > 0, ("proc not held"));
if (p_candebug(td, p)) {
PROC_UNLOCK(p);
return (EPERM);
}
- _PHOLD(p);
/* XXXKSE: */
error = proc_read_fpregs(FIRST_THREAD_IN_PROC(p), &r);
if (error == 0) {
@@ -77,7 +77,6 @@ procfs_doprocfpregs(PFS_FILL_ARGS)
/* XXXKSE: */
error = proc_write_fpregs(FIRST_THREAD_IN_PROC(p), &r);
}
- _PRELE(p);
PROC_UNLOCK(p);
uio->uio_offset = 0;
OpenPOWER on IntegriCloud