kernel/vm: Insertion into the Areas AVL tree can fail.

So we need to check that it didn't when creating areas.

Change-Id: I4342463113046b543722faa7a51ca269ed67e8bf
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8137
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Augustin Cavalier
2024-08-26 18:25:11 +00:00
committed by waddlesplash
parent be52613c12
commit dadc497fbc
3 changed files with 11 additions and 4 deletions
+1 -1
View File
@@ -219,7 +219,7 @@ struct VMAreas {
{ return sTree.Find(id); }
static VMArea* Lookup(area_id id);
static area_id Find(const char* name);
static void Insert(VMArea* area);
static status_t Insert(VMArea* area);
static void Remove(VMArea* area);
static VMAreasTree::Iterator GetIterator()