diff options
| author | Bruce Evans <bde@FreeBSD.org> | 2002-02-16 04:05:32 +0000 |
|---|---|---|
| committer | Bruce Evans <bde@FreeBSD.org> | 2002-02-16 04:05:32 +0000 |
| commit | ff3741f519dc71a621e9bc625fa40e1725e67dc7 (patch) | |
| tree | 2a984b303e4fba7a6c6dbe3ac147ca53fef8abc9 /sys/fs/procfs/procfs_dbregs.c | |
| parent | 4d0649fbad8cd99f1c3302b695eafa871d2de422 (diff) | |
Notes
Diffstat (limited to 'sys/fs/procfs/procfs_dbregs.c')
| -rw-r--r-- | sys/fs/procfs/procfs_dbregs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/fs/procfs/procfs_dbregs.c b/sys/fs/procfs/procfs_dbregs.c index 19e16dd052f2..eb1991d83cd8 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); |
