mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
RAMFS: ramfs_close_attr needs a write-lock.
This commit is contained in:
parent
bab3f64413
commit
ce5375c0bf
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user