1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-27 16:39:08 +00:00

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

This happens when called from lookup().
This commit is contained in:
Tim J. Robbins 2003-03-05 09:52:04 +00:00
parent 40a392599f
commit 11aca4935c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111902
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;