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:
Ingo Weinhold
2013-04-05 00:20:32 +02:00
parent dedc1369e1
commit c7382d4c9d
@@ -1805,8 +1805,10 @@ Volume::_PublishShineThroughDirectories()
}
// publish the vnode, so the VFS will find it without asking us
directory->AcquireReference();
error = PublishVNode(directory);
if (error != B_OK) {
directory->ReleaseReference();
_RemoveNode(directory);
RETURN_ERROR(error);
}