Skip to content

Commit eea0c0f

Browse files
authored
Merge pull request #3085 from alexhenrie/memory_alloc
Fix null pointer check in blas_memory_alloc
2 parents 85be43e + 113840d commit eea0c0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver/others/memory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,7 @@ UNLOCK_COMMAND(&alloc_lock);
12411241

12421242
func = &memoryalloc[0];
12431243

1244-
while ((func != NULL) && (map_address == (void *) -1)) {
1244+
while ((*func != NULL) && (map_address == (void *) -1)) {
12451245

12461246
map_address = (*func)((void *)base_address);
12471247

0 commit comments

Comments
 (0)