slab: record size on kmalloc(..., ALLOC_KERN);
previously, this size was not recorded, causing krealloc to fail, due to it always copying zero bytes
This commit is contained in:
parent
c487c4c9dd
commit
4aefedf276
1 changed files with 1 additions and 0 deletions
|
|
@ -193,6 +193,7 @@ static void *kmalloc_table(size_t size, size_t *sizes, size_t nsizes, slab_t **c
|
|||
return NULL;
|
||||
}
|
||||
n->value = (uint64_t)slab;
|
||||
n->value2 = size;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue