mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
Added a check/panic for v_usecount being 0 (no vnode reference) in
vnode_pager_alloc().
This commit is contained in:
parent
fe95dc619a
commit
098415100b
1 changed files with 2 additions and 0 deletions
|
|
@ -148,6 +148,8 @@ vnode_pager_alloc(handle, size, prot, offset)
|
|||
else
|
||||
object->flags = 0;
|
||||
|
||||
if (vp->v_usecount == 0)
|
||||
panic("vnode_pager_alloc: no vnode reference");
|
||||
/*
|
||||
* Hold a reference to the vnode and initialize object data.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue