summaryrefslogtreecommitdiffstats
path: root/sys/nfs
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2001-09-18 18:37:52 +0000
committerimp <imp@FreeBSD.org>2001-09-18 18:37:52 +0000
commit26847c44d7ca2ace5384995955eeff32c4ebbf8f (patch)
tree3c3649632812827c2e00c62db8ba34372fa7f696 /sys/nfs
parentc93cede993ecac88c8afda71ca5abb9b4028c720 (diff)
downloadFreeBSD-src-26847c44d7ca2ace5384995955eeff32c4ebbf8f.zip
FreeBSD-src-26847c44d7ca2ace5384995955eeff32c4ebbf8f.tar.gz
nfs_strategy calls nfs_asyncio with td as NULL. So add a bandaid that
will pass NULL as the struct proc when td is NULL. This has stopped crashing on my machine. Note: The passing of NULL may be bogus, but I'll let others fix that problem. Reviewed by: jhb
Diffstat (limited to 'sys/nfs')
-rw-r--r--sys/nfs/nfs_bio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/nfs/nfs_bio.c b/sys/nfs/nfs_bio.c
index e48cd5c..fa7274d 100644
--- a/sys/nfs/nfs_bio.c
+++ b/sys/nfs/nfs_bio.c
@@ -1335,7 +1335,7 @@ again:
error = tsleep(&nmp->nm_bufq, slpflag | PRIBIO,
"nfsaio", slptimeo);
if (error) {
- if (nfs_sigintr(nmp, NULL, td->td_proc))
+ if (nfs_sigintr(nmp, NULL, td ? td->td_proc : NULL))
return (EINTR);
if (slpflag == PCATCH) {
slpflag = 0;
OpenPOWER on IntegriCloud