mirror of
https://github.com/drasko/codezero.git
synced 2026-01-13 11:23:16 +01:00
Fixed error escalation in thread_create() and its function calls.
This commit is contained in:
@@ -181,7 +181,11 @@ int free_pgd(void *v)
|
||||
|
||||
void *zalloc_page(void)
|
||||
{
|
||||
void *p = alloc_page();
|
||||
void *p;
|
||||
|
||||
if (!(p = alloc_page()))
|
||||
return 0;
|
||||
|
||||
memset(p, 0, PAGE_SIZE);
|
||||
return p;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user