kmalloc: add fallback for failed DMA allocations
This commit is contained in:
parent
36c6f7b92c
commit
06b02fc9a6
3 changed files with 31 additions and 2 deletions
|
|
@ -130,6 +130,10 @@ struct rbnode *rbt_insert(struct rbtree *tree, uint64_t key)
|
|||
new->right = NULL;
|
||||
new->color = RB_RED;
|
||||
|
||||
new->value = 0;
|
||||
new->value2 = 0;
|
||||
new->value3 = 0;
|
||||
|
||||
spinlock_acquire(&tree->lock);
|
||||
|
||||
if (parent == NULL)
|
||||
|
|
|
|||
Loading…
Reference in a new issue