From 86800c1647ed12cb375c8ffff5ef0c27c5215d09 Mon Sep 17 00:00:00 2001 From: Kenneth Cain Date: Wed, 21 Jun 2023 11:13:51 -0400 Subject: [PATCH] DAOS-13785 gurt: protect d_log_refcount with d_log_lock Coverity fix for CID 1443180 Required-githooks: true 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();