From: Dave Airlie Date: Mon, 14 Dec 2009 22:07:12 +0000 (+1000) Subject: drm/ttm: fix incorrect logic in ttm_bo_io path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b8ff7357da45e025c446fe0479612215fe56a249;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git drm/ttm: fix incorrect logic in ttm_bo_io path This path isn't used by radeon yet, but future drivers will want it, so fix it right. Reported-by: Luca Barbieri Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/ttm/ttm_bo_vm.c b/drivers/gpu/drm/ttm/ttm_bo_vm.c index 609a85a4d855..668dbe8b8dd3 100644 --- a/drivers/gpu/drm/ttm/ttm_bo_vm.c +++ b/drivers/gpu/drm/ttm/ttm_bo_vm.c @@ -320,7 +320,7 @@ ssize_t ttm_bo_io(struct ttm_bo_device *bdev, struct file *filp, return -EFAULT; driver = bo->bdev->driver; - if (unlikely(driver->verify_access)) { + if (unlikely(!driver->verify_access)) { ret = -EPERM; goto out_unref; }