Fixed missing PHOLD()/PRELE().

Obtained from:	procfs_dbregs.c
Approved by:	des
This commit is contained in:
bde 2002-02-16 04:05:32 +00:00
parent 5dc8f0b672
commit f4a51c8637

View File

@ -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);