From: Thomas Hellstrom Date: Sun, 21 Oct 2007 10:57:43 +0000 (+0200) Subject: Get the lock flags right in libdrm. X-Git-Tag: submit/1.0/20121108.012404~1030^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6420d33b02db0da900140c238bb35f13abc182e7;p=profile%2Fivi%2Flibdrm.git Get the lock flags right in libdrm. --- diff --git a/libdrm/xf86drm.c b/libdrm/xf86drm.c index ee0043c..a50eff9 100644 --- a/libdrm/xf86drm.c +++ b/libdrm/xf86drm.c @@ -2828,7 +2828,7 @@ int drmMMLock(int fd, unsigned memType, int lockBM, int ignoreNoEvict) memset(&arg, 0, sizeof(arg)); arg.mem_type = memType; arg.lock_flags |= (lockBM) ? DRM_BO_LOCK_UNLOCK_BM : 0; - arg.lock_flags |= (ignoreNoEvict) = DRM_BO_LOCK_IGNORE_NO_EVICT; + arg.lock_flags |= (ignoreNoEvict) ? DRM_BO_LOCK_IGNORE_NO_EVICT : 0; do{ ret = ioctl(fd, DRM_IOCTL_MM_LOCK, &arg);