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:
parent
40a392599f
commit
11aca4935c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111902
@ -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