From ce5375c0bfede3535cc349523a3a2984382106d1 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Fri, 22 Nov 2024 21:30:18 -0500 Subject: [PATCH] RAMFS: ramfs_close_attr needs a write-lock. --- src/add-ons/kernel/file_systems/ramfs/kernel_interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/kernel/file_systems/ramfs/kernel_interface.cpp b/src/add-ons/kernel/file_systems/ramfs/kernel_interface.cpp index 811c1d90a1..0844df8091 100644 --- a/src/add-ons/kernel/file_systems/ramfs/kernel_interface.cpp +++ b/src/add-ons/kernel/file_systems/ramfs/kernel_interface.cpp @@ -1648,7 +1648,7 @@ ramfs_close_attr(fs_volume* _volume, fs_vnode* _node, void* _cookie) Volume* volume = (Volume*)_volume->private_volume; Node* node = (Node*)_node->private_node; - VolumeReadLocker locker(volume); + VolumeWriteLocker locker(volume); if (!locker.IsLocked()) RETURN_ERROR(B_ERROR);