提交 367d896d 编写于 作者: I Ira W. Snyder 提交者: Sasha Levin

tools/liblockdep: Fix initialization code path

This makes initialization actually happen. Without it, initialization is
always skipped due to an incorrect conditional statement.
Signed-off-by: NIra W. Snyder <iws@ovro.caltech.edu>
Signed-off-by: NSasha Levin <sasha.levin@oracle.com>
上级 38dbfb59
......@@ -418,7 +418,7 @@ int pthread_rwlock_unlock(pthread_rwlock_t *rwlock)
__attribute__((constructor)) static void init_preload(void)
{
if (__init_state != done)
if (__init_state == done)
return;
#ifndef __GLIBC__
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册