mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
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:
parent
a953848c04
commit
976a26437e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=83629
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user