fix wrong pointer check

This commit is contained in:
Stefan Lankes 2014-12-02 23:37:43 +01:00
parent 455de5f846
commit 04290f885d

View file

@ -205,7 +205,7 @@ static int create_task(tid_t* id, entry_point_t ep, void* arg, uint8_t prio)
/* Allocated new PGD or PML4 and copy page table */
size_t map = get_pages(1);
if (BUILTIN_EXPECT(map, 0))
if (BUILTIN_EXPECT(!map, 0))
goto out;
page_map_copy(map);