1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:48:11 +00:00

TmpFS: Use fallible KBuffer API

If allocation fails, some TmpFS operations can now fail with ENOMEM.
This commit is contained in:
Andreas Kling 2020-12-18 13:34:57 +01:00
parent 47da86d136
commit bcd2844439
2 changed files with 25 additions and 19 deletions

View file

@ -102,7 +102,7 @@ private:
InodeMetadata m_metadata;
InodeIdentifier m_parent;
Optional<KBuffer> m_content;
OwnPtr<KBuffer> m_content;
struct Child {
String name;
NonnullRefPtr<TmpFSInode> inode;