mirror of
https://github.com/opnsense/src.git
synced 2026-05-19 08:25:22 -04:00
Use crhold() instead of crdup() since we aren't modifying the cred but
just need to ensure it remains immutable.
This commit is contained in:
parent
2815c1fd80
commit
5162c5cc1e
1 changed files with 2 additions and 1 deletions
|
|
@ -2361,7 +2361,8 @@ nfs_sillyrename(struct vnode *dvp, struct vnode *vp, struct componentname *cnp)
|
|||
#endif
|
||||
MALLOC(sp, struct sillyrename *, sizeof (struct sillyrename),
|
||||
M_NFSREQ, M_WAITOK);
|
||||
sp->s_cred = crdup(cnp->cn_cred);
|
||||
crhold(cnp->cn_cred);
|
||||
sp->s_cred = cnp->cn_cred;
|
||||
sp->s_dvp = dvp;
|
||||
VREF(dvp);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue