sync: reorder sync_fence_release
authorErik Gilling <konkers@android.com>
Thu, 12 Jul 2012 00:07:39 +0000 (17:07 -0700)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 23 Jul 2012 08:51:45 +0000 (13:51 +0530)
commitd3ad40675903e6e40f495caf9130a7a586425255
treeb0c70a8a78f15fa733bdee4218426f8491a29db3
parent202ac37d607bed404cae6d5040d9a9c7f1d6bec2
sync: reorder sync_fence_release

Previously fence's pts were freed before the were the fence was removed from the
global fence list.  This led to a race with the debugfs support where it would
iterate over sync_pts that had been freed.

Change-Id: Ia3ddbf77de42ca593fc2dc353b5d04e42ddf3946
Signed-off-by: Erik Gilling <konkers@android.com>
drivers/base/sync.c