Skip to content

Commit

Permalink
DAOS-13785 gurt: protect d_log_refcount with d_log_lock (#12467)
Browse files Browse the repository at this point in the history
Coverity fix for CID 1443180

Signed-off-by: Kenneth Cain <kenneth.c.cain@intel.com>
  • Loading branch information
kccain committed Jun 23, 2023
1 parent 0c2e1db commit dc5bbd4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gurt/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit dc5bbd4

Please sign in to comment.