CHROMIUM: MALI: fix signaling of already signaled fences

Error code can be only set once, before fence is signaled.
So before setting error code, test if fence is signaled and do
not try to signal fence that has been already signaled.

TEST=killall -9 surfaceflinger, no BUG_ON reboot

Change-Id: Ibc5f61381d51af3fa31903e3df43e715dc03e661
Signed-off-by: Dominik Behr <>
Commit-Ready: Douglas Anderson <>
Tested-by: Douglas Anderson <>
Reviewed-by: Douglas Anderson <>
Reviewed-by: St├ęphane Marchesin <>
Reviewed-by: Tomasz Figa <>
(cherry picked from commit 466855709f5ac0afdbe27a8079437974bd314ec8)
1 file changed