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:
parent
fe0d0493ac
commit
1037bbb195
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=90392
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user