Pass 'curthread' into VFS_STATFS() from acctwatch(), rather than passing

NULL.  The NFS client expects that a thread will always be present for a
VOP so that it can check for signal conditions, and will dereference a
NULL pointer if one isn't present.

MFC after:	3 days
This commit is contained in:
Robert Watson 2005-09-21 15:28:07 +00:00
parent 3cfc7651b2
commit 87328e07e0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=150419

View File

@ -400,7 +400,7 @@ acctwatch(a)
mtx_unlock(&acct_mtx);
return;
}
(void)VFS_STATFS(savacctp->v_mount, &sb, (struct thread *)0);
(void)VFS_STATFS(savacctp->v_mount, &sb, curthread);
if (sb.f_bavail > acctresume * sb.f_blocks / 100) {
acctp = savacctp;
acctcred = savacctcred;
@ -422,7 +422,7 @@ acctwatch(a)
mtx_unlock(&acct_mtx);
return;
}
(void)VFS_STATFS(acctp->v_mount, &sb, (struct thread *)0);
(void)VFS_STATFS(acctp->v_mount, &sb, curthread);
if (sb.f_bavail <= acctsuspend * sb.f_blocks / 100) {
savacctp = acctp;
savacctflags = acctflags;