mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 21:28:14 +00:00
Kernel: Rename VMObject::clone() => try_clone()
And fix an unsafe dereference in SharedInodeVMObject::try_clone() to make it OOM-safe.
This commit is contained in:
parent
d85bce57b3
commit
f244a25f71
11 changed files with 13 additions and 13 deletions
|
@ -17,7 +17,7 @@ class SharedInodeVMObject final : public InodeVMObject {
|
|||
|
||||
public:
|
||||
static RefPtr<SharedInodeVMObject> try_create_with_inode(Inode&);
|
||||
virtual RefPtr<VMObject> clone() override;
|
||||
virtual RefPtr<VMObject> try_clone() override;
|
||||
|
||||
private:
|
||||
virtual bool is_shared_inode() const override { return true; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue