Fixed unlock check on EAGAIN

This commit is contained in:
Jakob Bornecrantz 2008-04-23 12:43:30 +02:00
parent feff72929e
commit 9ba3aaaa1a

View 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;
}