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
This commit is contained in:
Warner Losh 2001-09-18 18:37:52 +00:00
parent a953848c04
commit 976a26437e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=83629
2 changed files with 2 additions and 2 deletions

View file

@ -1335,7 +1335,7 @@ nfs_asyncio(bp, cred, td)
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;

View file

@ -1335,7 +1335,7 @@ nfs_asyncio(bp, cred, td)
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;