Skip to content

Commit

Permalink
drm/ttm: fix incorrect logic in ttm_bo_io path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dave Airlie committed Dec 16, 2009
1 parent 6ee7386 commit b8ff735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/ttm/ttm_bo_vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b8ff735

Please sign in to comment.