km1 and km2 need to panic on failure, not print just print failed.
This commit is contained in:
parent
dc1a1949a6
commit
ec1c1de132
@ -87,10 +87,10 @@ kmallocthread(void *sm, unsigned long num)
|
||||
if (sem) {
|
||||
kprintf("thread %lu: kmalloc returned NULL\n",
|
||||
num);
|
||||
goto done;
|
||||
panic("kmalloc test failed");
|
||||
}
|
||||
kprintf("kmalloc returned null; test failed.\n");
|
||||
goto done;
|
||||
panic("kmalloc test failed");
|
||||
}
|
||||
if (oldptr2) {
|
||||
kfree(oldptr2);
|
||||
|
Loading…
x
Reference in New Issue
Block a user