xfstests: aio-stress is calling pthread_join incorrectly
authorDave Kleikamp <dave.kleikamp@oracle.com>
Tue, 18 Jun 2013 22:57:00 +0000 (17:57 -0500)
committerBen Myers <bpm@sgi.com>
Wed, 26 Jun 2013 16:21:38 +0000 (11:21 -0500)
commita72607fadab2773135d0f484e1a82193e9940dfb
treead3d8e9ae340809119438cdd964f2f239fe4584c
parentd897c0db687f5b4dfe305ddaec50e374bd4f22e8
xfstests: aio-stress is calling pthread_join incorrectly

The retval parameter to pthread_join() is a pointer to a pointer.
aio-stress is passing in a pointer to an int. This can result in a bus
error on sparc64 when the pointer is not aligned on a 64-bit boundary.
Since the return value is not used, it is simplest to pass a NULL
pointer instead.

This has been fixed in the LTP source:
https://github.com/linux-test-project/ltp/commit/981d33aad3b33c4625b88990fbf2fad5470d47e0

Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
ltp/aio-stress.c