sync: reorder sync_fence_release
authorErik Gilling <konkers@android.com>
Thu, 12 Jul 2012 00:07:39 +0000 (17:07 -0700)
committer黄涛 <huangtao@rock-chips.com>
Fri, 22 Feb 2013 09:46:57 +0000 (17:46 +0800)
commit7b6920244ba00df0d82da8dffae6c3d588f3a705
tree2b74819bbce155d9502f5cb0011b9b7e6c8e4eca
parent4f605a26c179a9f9080b1e2ed98789f6e8016e96
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