OSDN Git Service

Fixed unlock check on EAGAIN
authorJakob Bornecrantz <jakob@tungstengraphics.com>
Wed, 23 Apr 2008 10:43:30 +0000 (12:43 +0200)
committerJakob Bornecrantz <jakob@tungstengraphics.com>
Wed, 23 Apr 2008 10:43:45 +0000 (12:43 +0200)
linux-core/drm_vm.c

index cabfb8f..b85b4c1 100644 (file)
@@ -751,6 +751,7 @@ static unsigned long drm_bo_vm_nopfn(struct vm_area_struct *vma,
        err = drm_bo_wait(bo, 0, 1, 0, 1);
        if (err) {
                ret = (err != -EAGAIN) ? NOPFN_SIGBUS : NOPFN_REFAULT;
+               bo->priv_flags &= ~_DRM_BO_FLAG_UNLOCKED;
                goto out_unlock;
        }