mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
drm/radeon/kms: fix return value from fence function.
We only want to return here for errors, the wait functions return a positive timeout otherwise, which gets back to userspace and causes X to crash here. Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
5cc6fbab9d
commit
2e7b6f7fa6
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ retry:
|
|||
r = wait_event_interruptible_timeout(rdev->fence_drv.queue,
|
||||
radeon_fence_signaled(fence), timeout);
|
||||
radeon_irq_kms_sw_irq_put(rdev);
|
||||
if (unlikely(r != 0))
|
||||
if (unlikely(r < 0))
|
||||
return r;
|
||||
} else {
|
||||
radeon_irq_kms_sw_irq_get(rdev);
|
||||
|
|
Loading…
Reference in a new issue