diff options
author | Dave Airlie <airlied@redhat.com> | 2009-12-15 08:07:12 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-12-16 15:32:31 +1000 |
commit | b8ff7357da45e025c446fe0479612215fe56a249 (patch) | |
tree | a2090eb741b2f970c5b1817c06e40c37c242939c /drivers | |
parent | 6ee738610f41b59733f63718f0bdbcba7d3a3f12 (diff) |
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 <luca@luca-barbieri.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/ttm/ttm_bo_vm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_bo_vm.c b/drivers/gpu/drm/ttm/ttm_bo_vm.c index 609a85a4d85..668dbe8b8dd 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; } |