Browse Source
Merge pull request #3085 from alexhenrie/memory_alloc
Fix null pointer check in blas_memory_alloc
tags/v0.3.14^2
Martin Kroeker
GitHub
5 years ago
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
driver/others/memory.c
|
|
|
@@ -1241,7 +1241,7 @@ UNLOCK_COMMAND(&alloc_lock); |
|
|
|
|
|
|
|
func = &memoryalloc[0]; |
|
|
|
|
|
|
|
while ((func != NULL) && (map_address == (void *) -1)) { |
|
|
|
while ((*func != NULL) && (map_address == (void *) -1)) { |
|
|
|
|
|
|
|
map_address = (*func)((void *)base_address); |
|
|
|
|
|
|
|
|