Handle the case where a_uio->uio_td == NULL properly in coda_readlink().
This happens when called from lookup().
This commit is contained in:
parent
4585c05036
commit
2f065a9318
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user