1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-19 15:33:56 +00:00

Fixed missing PHOLD()/PRELE().

Obtained from:	procfs_dbregs.c
Approved by:	des
This commit is contained in:
Bruce Evans 2002-02-16 04:05:32 +00:00
parent 4d0649fbad
commit ff3741f519
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=90715

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