Missing locking when adding/removing package nodes
This commit is contained in:
parent
83d5997db5
commit
35eeebddc4
@ -1029,6 +1029,7 @@ Volume::_AddPackageNode(Directory* directory, PackageNode* packageNode,
|
||||
}
|
||||
|
||||
BReference<Node> nodeReference(node);
|
||||
NodeWriteLocker nodeWriteLocker(node);
|
||||
|
||||
status_t error = unpackingNode->AddPackageNode(packageNode);
|
||||
if (error != B_OK) {
|
||||
@ -1075,6 +1076,7 @@ Volume::_RemovePackageNode(Directory* directory, PackageNode* packageNode,
|
||||
return;
|
||||
|
||||
BReference<Node> nodeReference(node);
|
||||
NodeWriteLocker nodeWriteLocker(node);
|
||||
|
||||
PackageNode* headPackageNode = unpackingNode->GetPackageNode();
|
||||
unpackingNode->RemovePackageNode(packageNode);
|
||||
|
Loading…
Reference in New Issue
Block a user