Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools/liblockdep: Fix comparison of a boolean value with a value of 2
Comparison of a boolean value (!__init_state) with a value of 2 (done) as currently happens in the code is unlikely to succeed and causes repeated initialization of the pthread function pointers. Instead, remove boolean comparison so that we would initialize said function pointers only once. Ref: https://bugzilla.kernel.org/show_bug.cgi?id=76741 Cc: Jean Delvare <[email protected]> Reported-by: David Binderman <[email protected]> Signed-off-by: Dianfang Zhang <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
- Loading branch information