From e9785f3f9efa197e76bd289dda6e566594cc33a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Constantin=20F=C3=BCrst?= Date: Thu, 18 Jan 2024 02:38:44 +0100 Subject: [PATCH] prevent deadlocks by setting the cache pointer to the source address in case of errors --- offloading-cacher/cache.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offloading-cacher/cache.hpp b/offloading-cacher/cache.hpp index a8186e4..c461f2f 100644 --- a/offloading-cacher/cache.hpp +++ b/offloading-cacher/cache.hpp @@ -692,7 +692,7 @@ inline void dsacache::CacheData::WaitOnCompletion() { // handle errors now by aborting the cache if (error) { - cache_->store(nullptr); + cache_->store(src_); numa_free(incomplete_cache_, size_); } else {