From e163055f6aa6ea6dd97e558e59f9039068671760 Mon Sep 17 00:00:00 2001 From: Christian Helmuth Date: Mon, 6 Jul 2020 16:07:25 +0200 Subject: [PATCH] ram fs: Release node mutex on unlink This is needed if an open file is unlinked. Fixes #3800 --- repos/os/src/lib/vfs/ram_file_system.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/os/src/lib/vfs/ram_file_system.h b/repos/os/src/lib/vfs/ram_file_system.h index dab6a7922a..5f903885cb 100644 --- a/repos/os/src/lib/vfs/ram_file_system.h +++ b/repos/os/src/lib/vfs/ram_file_system.h @@ -887,8 +887,8 @@ class Vfs::Ram_file_system : public Vfs::File_system Node *node = parent->child(basename(path)); if (!node) return UNLINK_ERR_NO_ENTRY; + Node::Guard node_guard(node); - node->acquire(); parent->release(node); node->notify(); parent->notify();