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 @@ 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; diff --git a/sys/nfsclient/nfs_bio.c b/sys/nfsclient/nfs_bio.c index e48cd5c4b5c2..fa7274d3433d 100644 --- a/sys/nfsclient/nfs_bio.c +++ b/sys/nfsclient/nfs_bio.c @@ -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;