diff options
author | bde <bde@FreeBSD.org> | 2002-02-16 04:05:32 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2002-02-16 04:05:32 +0000 |
commit | d4bcf41e4a9c4c3dd762331c5084a6b7fedc9158 (patch) | |
tree | 2a984b303e4fba7a6c6dbe3ac147ca53fef8abc9 /sys/fs | |
parent | e6201be54af255a094c24aa04232391ef85e7f58 (diff) | |
download | FreeBSD-src-d4bcf41e4a9c4c3dd762331c5084a6b7fedc9158.zip FreeBSD-src-d4bcf41e4a9c4c3dd762331c5084a6b7fedc9158.tar.gz |
Fixed missing PHOLD()/PRELE().
Obtained from: procfs_dbregs.c
Approved by: des
Diffstat (limited to 'sys/fs')
-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 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); |