packagefs: Acquire missing reference for shine-through dirs
Since we publish shine-through directories directly to the VFS, we need to acquire an additional reference, because we release a reference when a node is put.
This commit is contained in:
@@ -1805,8 +1805,10 @@ Volume::_PublishShineThroughDirectories()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// publish the vnode, so the VFS will find it without asking us
|
// publish the vnode, so the VFS will find it without asking us
|
||||||
|
directory->AcquireReference();
|
||||||
error = PublishVNode(directory);
|
error = PublishVNode(directory);
|
||||||
if (error != B_OK) {
|
if (error != B_OK) {
|
||||||
|
directory->ReleaseReference();
|
||||||
_RemoveNode(directory);
|
_RemoveNode(directory);
|
||||||
RETURN_ERROR(error);
|
RETURN_ERROR(error);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user