diff --git a/src/add-ons/kernel/drivers/disk/virtual/ram_disk/ram_disk.cpp b/src/add-ons/kernel/drivers/disk/virtual/ram_disk/ram_disk.cpp index 8dd73aadc5..160f431495 100644 --- a/src/add-ons/kernel/drivers/disk/virtual/ram_disk/ram_disk.cpp +++ b/src/add-ons/kernel/drivers/disk/virtual/ram_disk/ram_disk.cpp @@ -321,7 +321,9 @@ struct RawDevice : Device, DoublyLinkedListLinkImpl { fCache->temporary = 1; fCache->virtual_end = fDeviceSize; - error = fCache->Commit(fDeviceSize, VM_PRIORITY_SYSTEM); + fCache->Lock(); + error = fCache->Commit(fDeviceSize, VM_PRIORITY_USER); + fCache->Unlock(); if (error != B_OK) { Unprepare(); return error;