- 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:
parent
67d772b7fb
commit
bb34748589
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue