Handle the case where a_uio->uio_td == NULL properly in coda_readlink().

This happens when called from lookup().
This commit is contained in:
tjr 2003-03-05 09:52:04 +00:00
parent 4585c05036
commit 2f065a9318
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -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;