Commit-ID: 367d896dafe1b5f49bee75d3a419b9eb9936ae26 Gitweb: http://git.kernel.org/tip/367d896dafe1b5f49bee75d3a419b9eb9936ae26 Author: Ira W. Snyder <iws@xxxxxxxxxxxxxxxx> AuthorDate: Fri, 31 Jan 2014 15:30:54 -0800 Committer: Sasha Levin <sasha.levin@xxxxxxxxxx> CommitDate: Wed, 26 Feb 2014 21:21:49 -0500 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@xxxxxxxxxxxxxxxx> Signed-off-by: Sasha Levin <sasha.levin@xxxxxxxxxx> --- tools/lib/lockdep/preload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lib/lockdep/preload.c b/tools/lib/lockdep/preload.c index f8465a8..23bd69c 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__ -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html