selftests/futex: Fix futex_cmp_requeue_pi() error handling
authorDarren Hart <dvhart@infradead.org>
Mon, 20 Jul 2015 22:48:37 +0000 (15:48 -0700)
committerShuah Khan <shuahkh@osg.samsung.com>
Tue, 21 Jul 2015 00:29:38 +0000 (18:29 -0600)
commitfee50f3c8427aacabfb603229bf0a9056c3f2638
tree0ede8dc00b075c1ea819683cbbbcfca86e3ecc3f
parentd770e558e21961ad6cfdf0ff7df0eb5d7d4f0754
selftests/futex: Fix futex_cmp_requeue_pi() error handling

An earlier (pre-kernel-integration) refactoring of this code mistakenly
replaced the error condition, <, with a >. Use < to detect an error as
opposed to a successful requeue or signal race.

Reported-by: David Binderman <dcb314@hotmail.com>
Cc: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c