diff options
author | tjr <tjr@FreeBSD.org> | 2003-03-05 09:52:04 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2003-03-05 09:52:04 +0000 |
commit | 2f065a9318354222fb04a5e83394e3f5b9a81dc2 (patch) | |
tree | 3d452f9b61698226d4290d11d7eaa943c59b1a61 /sys/coda/coda_vnops.c | |
parent | 4585c05036656e7d4addfa482384fdecb137931f (diff) | |
download | FreeBSD-src-2f065a9318354222fb04a5e83394e3f5b9a81dc2.zip FreeBSD-src-2f065a9318354222fb04a5e83394e3f5b9a81dc2.tar.gz |
Handle the case where a_uio->uio_td == NULL properly in coda_readlink().
This happens when called from lookup().
Diffstat (limited to 'sys/coda/coda_vnops.c')
-rw-r--r-- | sys/coda/coda_vnops.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |