Commit 296814e7 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Don't unlock the mutex unless we locked it.

It is only during cleanup, so this *may* be an adequate bandaid.
parent 082e6bc5
......@@ -422,7 +422,8 @@ cmd_barrier(CMD_ARGS)
default:
WRONG("Wrong barrier type");
}
AZ(pthread_mutex_unlock(&b->mtx));
if (r == 0)
AZ(pthread_mutex_unlock(&b->mtx));
}
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment