Commit 367d896d authored by Ira W. Snyder's avatar Ira W. Snyder Committed by 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: default avatarIra W. Snyder <iws@ovro.caltech.edu>
Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent 38dbfb59
...@@ -418,7 +418,7 @@ int pthread_rwlock_unlock(pthread_rwlock_t *rwlock) ...@@ -418,7 +418,7 @@ int pthread_rwlock_unlock(pthread_rwlock_t *rwlock)
__attribute__((constructor)) static void init_preload(void) __attribute__((constructor)) static void init_preload(void)
{ {
if (__init_state != done) if (__init_state == done)
return; return;
#ifndef __GLIBC__ #ifndef __GLIBC__
......
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