kernel_args_malloc() now actually maintain the kernel_args ranges correctly.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9442 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2004-10-21 02:40:43 +00:00
parent a17b2346d0
commit 89e31dce3b
+1 -1
View File
@@ -169,7 +169,7 @@ kernel_args_malloc(size_t size)
sFirstFree = (void *)((addr_t)block + size);
sLast = block;
sFree = kChunkSize - size;
if (add_kernel_args_range(block, size) != B_OK)
if (add_kernel_args_range(block, kChunkSize) != B_OK)
panic("kernel_args max range to low!\n");
return block;