diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-07-28 13:09:53 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-07-28 13:09:53 -0400 |
commit | 30b4f0faf47febe478e29dbbffd17bc35b350f22 (patch) | |
tree | acf136bbaba48910b9c2942382739b6ae549ff8d /tools | |
parent | d8132e08d25a47e2d5156aa2268cd1cd9b0d6c0d (diff) | |
parent | fee50f3c8427aacabfb603229bf0a9056c3f2638 (diff) |
Merge tag 'linux-kselftest-4.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
Pull kselftest fix from Shuah Khan.
* tag 'linux-kselftest-4.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
selftests/futex: Fix futex_cmp_requeue_pi() error handling
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c b/tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c index 7f0c756993af..3d7dc6afc3f8 100644 --- a/tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c +++ b/tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c | |||
@@ -191,7 +191,7 @@ int main(int argc, char *argv[]) | |||
191 | if (res > 0) { | 191 | if (res > 0) { |
192 | atomic_set(&requeued, 1); | 192 | atomic_set(&requeued, 1); |
193 | break; | 193 | break; |
194 | } else if (res > 0) { | 194 | } else if (res < 0) { |
195 | error("FUTEX_CMP_REQUEUE_PI failed\n", errno); | 195 | error("FUTEX_CMP_REQUEUE_PI failed\n", errno); |
196 | ret = RET_ERROR; | 196 | ret = RET_ERROR; |
197 | break; | 197 | break; |