- remove typo

git-svn-id: http://svn.lfbs.rwth-aachen.de/svn/scc/trunk/MetalSVM@405 315a16e6-25f9-4109-90ae-ca3045a26c18
This commit is contained in:
stefan 2011-02-10 13:01:29 +00:00
parent 67d772b7fb
commit bb34748589

View file

@ -185,7 +185,7 @@ static size_t task_get_pages(task_t* task, uint32_t npages)
if (BUILTIN_EXPECT(!npages, 0))
return ret;
if (BUILTIN_EXPECT(npages > total_available_pages, 0))
if (BUILTIN_EXPECT(npages > atomic_int32_read(&total_available_pages), 0))
return ret;
spinlock_lock(&bitmap_lock);