ramfs: Add missing lock of VMCache in DataContainer.

This commit is contained in:
Augustin Cavalier
2024-10-02 15:40:42 -04:00
parent c2aac52c17
commit f940c524eb
@@ -299,6 +299,8 @@ DataContainer::_SwitchToCacheMode()
if (error != B_OK)
return error;
AutoLocker<VMCache> locker(cache);
fCache = cache;
fCache->temporary = 1;
fCache->unmergeable = 1;