1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-17 15:27:36 +00:00

Fix broken Giant locking protocol introduced in rev 1.114. You cannot

unlock Giant if it is not locked in the first place.  This make the
nfstat(2) syscall (#278) a nice panic(2) implementation.
This commit is contained in:
Peter Wemm 2002-02-08 09:16:57 +00:00
parent fe0d0493ac
commit 1037bbb195
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=90392

View File

@ -800,6 +800,7 @@ nfstat(td, uap)
struct nstat nub;
int error;
mtx_lock(&Giant);
if ((error = fget(td, uap->fd, &fp)) != 0)
goto done2;
error = fo_stat(fp, &ub, td);