summaryrefslogtreecommitdiff
path: root/VirtualFileSystem/VirtualFileSystem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'VirtualFileSystem/VirtualFileSystem.cpp')
-rw-r--r--VirtualFileSystem/VirtualFileSystem.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/VirtualFileSystem/VirtualFileSystem.cpp b/VirtualFileSystem/VirtualFileSystem.cpp
index da482bd9fa..31cdf58d2e 100644
--- a/VirtualFileSystem/VirtualFileSystem.cpp
+++ b/VirtualFileSystem/VirtualFileSystem.cpp
@@ -180,6 +180,7 @@ auto VirtualFileSystem::allocateNode() -> RetainPtr<Node>
ASSERT(node->retainCount == 0);
node->retainCount = 1;
node->m_vfs = this;
+ node->m_vmo = nullptr;
return adopt(*node);
}
@@ -197,6 +198,8 @@ void VirtualFileSystem::freeNode(Node* node)
m_device2vnode.remove(encodedDevice(node->m_characterDevice->major(), node->m_characterDevice->minor()));
node->m_characterDevice = nullptr;
}
+ node->m_vfs = nullptr;
+ node->m_vmo = nullptr;
m_nodeFreeList.append(move(node));
}