Skip to content

Commit 113840d

Browse files
committed
Fix null pointer check in blas_memory_alloc
1 parent 0745ba4 commit 113840d

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)