ramfs: Check for errors when increasing file sizes.

Fixes the first KDL in #19583.
This commit is contained in:
Augustin Cavalier
2025-05-28 16:10:01 -04:00
parent 4bb864d0a6
commit 41b15d5fe4
@@ -151,7 +151,9 @@ DataContainer::Resize(off_t newSize)
return error;
AutoLocker<VMCache> _(fCache);
fCache->Resize(newSize, VM_PRIORITY_USER);
error = fCache->Resize(newSize, VM_PRIORITY_USER);
if (error != B_OK)
return error;
// pages will be added as they are written to; so nothing else
// needs to be done here.