diff --git a/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp b/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp index 7121bce201..345a4d1ec3 100644 --- a/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp +++ b/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp @@ -842,6 +842,8 @@ BlockAllocator::CheckNextNode(check_control *control) // check if the inode's name is the same as in the b+tree if (inode->IsRegularNode()) { + SimpleLocker locker(inode->SmallDataLock()); + const char *localName = inode->Name(); if (localName == NULL || strcmp(localName, name)) { control->errors |= BFS_NAMES_DONT_MATCH;