From 1467377f0cd7d722e2adcfc3b99472285ae0c2c3 Mon Sep 17 00:00:00 2001 From: Mathieu Faverge <mathieu.faverge@inria.fr> Date: Tue, 18 May 2021 19:21:59 +0200 Subject: [PATCH] compute/zgemm: check ws before unreferencing it --- compute/pzgemm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compute/pzgemm.c b/compute/pzgemm.c index 827f566e9..0c374e645 100644 --- a/compute/pzgemm.c +++ b/compute/pzgemm.c @@ -291,7 +291,7 @@ chameleon_pzgemm( struct chameleon_pzgemm_s *ws, } RUNTIME_options_init( &options, chamctxt, sequence, request ); - if ( ws->summa ) + if ( ws && ws->summa ) { chameleon_pzgemm_summa( chamctxt, transA, transB, alpha, A, B, beta, C, &(ws->WA), &(ws->WB), &options ); -- GitLab