From 113840da12828418dedeb1392d55e45ae6a2a674 Mon Sep 17 00:00:00 2001 From: Alex Henrie Date: Sun, 24 Jan 2021 22:20:44 -0700 Subject: [PATCH] Fix null pointer check in blas_memory_alloc --- driver/others/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/others/memory.c b/driver/others/memory.c index f0521ab2d..91d21a88e 100644 --- a/driver/others/memory.c +++ b/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);