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:
Michael Shaw 2024-02-12 22:45:43 -05:00
commit 4aefedf276

View file

@ -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;
}