Fixed error escalation in thread_create() and its function calls.

This commit is contained in:
Bahadir Balban
2009-05-01 22:39:31 +03:00
parent 952285d756
commit 97bfd3bb9b
4 changed files with 43 additions and 8 deletions

View File

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