mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
sync: use proper barriers when waiting indefinitely
The previous fix only addressed waiting with a timeout. Change-Id: I8ad735d2d0dfdd53592904e8a54f5689cb5eaa5e Signed-off-by: Erik Gilling <konkers@android.com>
This commit is contained in:
@@ -587,7 +587,8 @@ int sync_fence_wait(struct sync_fence *fence, long timeout)
|
||||
sync_fence_check(fence),
|
||||
timeout);
|
||||
} else if (timeout < 0) {
|
||||
err = wait_event_interruptible(fence->wq, fence->status != 0);
|
||||
err = wait_event_interruptible(fence->wq,
|
||||
sync_fence_check(fence));
|
||||
}
|
||||
|
||||
if (err < 0)
|
||||
|
||||
Reference in New Issue
Block a user