kernel/allocator: Add missed change to block_allocator_init_boot().

This commit is contained in:
Augustin Cavalier 2024-09-02 15:27:47 -04:00
parent 9e89f7c068
commit 35d9b4075a

View File

@ -165,7 +165,7 @@ block_free(void* block, uint32 flags)
void
block_allocator_init_boot()
{
for (int index = 0; kBlockSizes[index] != 0; index++) {
for (int index = 0; index < kNumBlockSizes; index++) {
char name[32];
snprintf(name, sizeof(name), "block allocator: %lu",
kBlockSizes[index]);