From 2f065a9318354222fb04a5e83394e3f5b9a81dc2 Mon Sep 17 00:00:00 2001 From: tjr Date: Wed, 5 Mar 2003 09:52:04 +0000 Subject: Handle the case where a_uio->uio_td == NULL properly in coda_readlink(). This happens when called from lookup(). --- sys/coda/coda_vnops.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/coda/coda_vnops.c') diff --git a/sys/coda/coda_vnops.c b/sys/coda/coda_vnops.c index 8fdcdbf..caa4738 100644 --- a/sys/coda/coda_vnops.c +++ b/sys/coda/coda_vnops.c @@ -798,7 +798,8 @@ coda_readlink(v) return(error); } - error = venus_readlink(vtomi(vp), &cp->c_fid, cred, td->td_proc, &str, &len); + error = venus_readlink(vtomi(vp), &cp->c_fid, cred, + td != NULL ? td->td_proc : NULL, &str, &len); if (!error) { uiop->uio_rw = UIO_READ; -- cgit v1.1