mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:58:11 +00:00
Kernel: Make Inode::set_shared_vmobject() OOM-fallible
Allocating a WeakPtr can fail, so this let's us properly propagate said failure.
This commit is contained in:
parent
c620f18d8c
commit
e37e4a7980
3 changed files with 5 additions and 4 deletions
|
@ -82,7 +82,7 @@ public:
|
|||
|
||||
void will_be_destroyed();
|
||||
|
||||
void set_shared_vmobject(Memory::SharedInodeVMObject&);
|
||||
ErrorOr<void> set_shared_vmobject(Memory::SharedInodeVMObject&);
|
||||
RefPtr<Memory::SharedInodeVMObject> shared_vmobject() const;
|
||||
|
||||
static void sync_all();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue