diff options
-rw-r--r-- | libdrm/xf86mm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdrm/xf86mm.c b/libdrm/xf86mm.c index f0369ea5..b8b0f861 100644 --- a/libdrm/xf86mm.c +++ b/libdrm/xf86mm.c @@ -278,7 +278,7 @@ drmWaitFence(int drmFD, drmFence fence) arg.req.fence_type = fence.fenceType; arg.req.fence_seq = fence.fenceSeq; ret = ioctl(drmFD, DRM_IOCTL_FENCE, &arg); - } while (ret == -EAGAIN); + } while (ret != 0 && errno == EAGAIN); if (ret) { drmMsg("drmWaitFence: failed: %s\n", strerror(errno)); |