diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2005-09-21 15:28:07 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2005-09-21 15:28:07 +0000 |
commit | 87328e07e045febaae309d630ba2bf8a3b10bb5c (patch) | |
tree | 53df452ce15587337b48c06091fb8c3dda070e0f /sys/kern | |
parent | 3cfc7651b2b9e6656bed6156527e90d6001c95ca (diff) | |
download | src-87328e07e045febaae309d630ba2bf8a3b10bb5c.tar.gz src-87328e07e045febaae309d630ba2bf8a3b10bb5c.zip |
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
Notes
Notes:
svn path=/head/; revision=150419
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_acct.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_acct.c b/sys/kern/kern_acct.c index d0f2845fe666..5811608fd616 100644 --- a/sys/kern/kern_acct.c +++ b/sys/kern/kern_acct.c @@ -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; |