Do not set a variable (vp->p_pollinfo) to NULL if we know
it already has that value. Approved by: re
This commit is contained in:
parent
cd96609654
commit
f85a961930
@ -961,8 +961,8 @@ getnewvnode(tag, mp, vops, vpp)
|
||||
if (vp->v_pollinfo) {
|
||||
mtx_destroy(&vp->v_pollinfo->vpi_lock);
|
||||
uma_zfree(vnodepoll_zone, vp->v_pollinfo);
|
||||
vp->v_pollinfo = NULL;
|
||||
}
|
||||
vp->v_pollinfo = NULL;
|
||||
#ifdef MAC
|
||||
mac_destroy_vnode(vp);
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user