diff --git a/driver/others/memory.c b/driver/others/memory.c index 8e601099c..0a0b0eb3d 100644 --- a/driver/others/memory.c +++ b/driver/others/memory.c @@ -2921,7 +2921,7 @@ void *blas_memory_alloc(int procpos){ func = &memoryalloc[0]; - while ((func != NULL) && (map_address == (void *) -1)) { + while ((*func != NULL) && (map_address == (void *) -1)) { map_address = (*func)((void *)base_address); @@ -3032,7 +3032,7 @@ allocation2: func = &memoryalloc[0]; - while ((func != NULL) && (map_address == (void *) -1)) { + while ((*func != NULL) && (map_address == (void *) -1)) { map_address = (*func)((void *)base_address);