From ee8ce11a18247167c33f78368d6e0bf08d403bd4 Mon Sep 17 00:00:00 2001 From: Ken Cain Date: Fri, 23 Jun 2023 10:40:48 -0400 Subject: [PATCH] DAOS-13785 gurt: protect d_log_refcount with d_log_lock (#12467) (#12474) Coverity fix for CID 1443180 Signed-off-by: Kenneth Cain --- src/gurt/debug.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gurt/debug.c b/src/gurt/debug.c index 960db55b001..4fb112b7dcc 100644 --- a/src/gurt/debug.c +++ b/src/gurt/debug.c @@ -560,9 +560,8 @@ d_log_init(void) void d_log_fini(void) { - D_ASSERT(d_log_refcount > 0); - D_MUTEX_LOCK(&d_log_lock); + D_ASSERT(d_log_refcount > 0); d_log_refcount--; if (d_log_refcount == 0) { cleanup_dbg_namebit();