summaryrefslogtreecommitdiff
path: root/scripts/stackusage
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor@chromium.org>2015-12-15 04:34:08 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-12-22 00:37:53 +0300
commit699f685569434510d944e419f4048c4e3ba8d631 (patch)
tree66432e17d05e474cf963641329e9bfb5c52368f7 /scripts/stackusage
parent0f477c6dea709465550aa0922fd0c5b686e6e8eb (diff)
downloadlinux-699f685569434510d944e419f4048c4e3ba8d631.tar.xz
android: unconditionally remove callbacks in sync_fence_free()
Using fence->status to determine whether or not there are callbacks remaining on the sync_fence is racy since fence->status may have been decremented to 0 on another CPU before fence_check_cb_func() has completed. By unconditionally calling fence_remove_callback() for each fence in the sync_fence, we guarantee that each callback has either completed (since fence_remove_callback() grabs the fence lock) or been removed. Signed-off-by: Andrew Bresticker <abrestic@chromium.org> Signed-off-by: Dmitry Torokhov <dtor@chromium.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions