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
@ -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…
x
Reference in New Issue
Block a user