From cb0a9fe094488d16e5ffff2f96ef56892da956a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 25 Nov 2002 23:30:54 +0000 Subject: [PATCH] Fixed a stupid bug, used Inode::Name() without locking. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2087 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp | 2 ++ 1 file changed, 2 insertions(+) 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;