aboutsummaryrefslogtreecommitdiff
path: root/sys/nfs
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2001-09-18 18:37:52 +0000
committerWarner Losh <imp@FreeBSD.org>2001-09-18 18:37:52 +0000
commit976a26437e3495e47504cff2488058afb75c57c9 (patch)
tree3c3649632812827c2e00c62db8ba34372fa7f696 /sys/nfs
parenta953848c0476b391b812d813aaf1f31e25e52a3b (diff)
downloadsrc-976a26437e3495e47504cff2488058afb75c57c9.tar.gz
src-976a26437e3495e47504cff2488058afb75c57c9.zip
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
Notes
Notes: svn path=/head/; revision=83629
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 e48cd5c4b5c2..fa7274d3433d 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;