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);