summaryrefslogtreecommitdiff
path: root/tools/lib/lockdep/preload.c
diff options
context:
space:
mode:
authorIra W. Snyder <iws@ovro.caltech.edu>2014-02-01 03:30:54 +0400
committerSasha Levin <sasha.levin@oracle.com>2014-02-27 06:21:49 +0400
commit367d896dafe1b5f49bee75d3a419b9eb9936ae26 (patch)
treeeb427eb9f13ce07e80d72207afec8b62e616acaf /tools/lib/lockdep/preload.c
parent38dbfb59d1175ef458d006556061adeaa8751b72 (diff)
downloadlinux-367d896dafe1b5f49bee75d3a419b9eb9936ae26.tar.xz
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: Ira W. Snyder <iws@ovro.caltech.edu> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'tools/lib/lockdep/preload.c')
-rw-r--r--tools/lib/lockdep/preload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/lockdep/preload.c b/tools/lib/lockdep/preload.c
index f8465a811aa5..23bd69cb5ade 100644
--- a/tools/lib/lockdep/preload.c
+++ b/tools/lib/lockdep/preload.c
@@ -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__