diff options
author | rwatson <rwatson@FreeBSD.org> | 2005-09-21 15:28:07 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2005-09-21 15:28:07 +0000 |
commit | 6fae9305e00796d1c3330ed161c9b6e731378efa (patch) | |
tree | 53df452ce15587337b48c06091fb8c3dda070e0f /sys | |
parent | 2ccdc160835e64018bdc08fea7846d107b06d33f (diff) | |
download | FreeBSD-src-6fae9305e00796d1c3330ed161c9b6e731378efa.zip FreeBSD-src-6fae9305e00796d1c3330ed161c9b6e731378efa.tar.gz |
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
Diffstat (limited to 'sys')
-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 d0f2845..5811608 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; |