mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Fix for a bug in nfs_mkdir() that called vrele() instead of vput()
in the error cases, causing panics. Adapted from similar fix to NFSv3 mkdir submitted by Mohan Srinivasan mohans at yahoo-inc dot com Approved by: alfred
This commit is contained in:
parent
743cf01795
commit
02a8ac2b7b
1 changed files with 1 additions and 1 deletions
|
|
@ -1564,7 +1564,7 @@ nfs4_createrpc(struct vnode *dvp, struct vnode **vpp, struct componentname *cnp,
|
|||
/* XXX */
|
||||
/*FREE(cnp->cn_pnbuf, M_NAMEI);*/
|
||||
if (error != 0 && newvp != NULL)
|
||||
vrele(newvp);
|
||||
vput(newvp);
|
||||
else if (error == 0)
|
||||
*vpp = newvp;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue