projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ee7386
)
drm/ttm: fix incorrect logic in ttm_bo_io path
author
Dave Airlie
<airlied@redhat.com>
Mon, 14 Dec 2009 22:07:12 +0000
(08:07 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Wed, 16 Dec 2009 05:32:31 +0000
(15:32 +1000)
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>
drivers/gpu/drm/ttm/ttm_bo_vm.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/ttm/ttm_bo_vm.c
b/drivers/gpu/drm/ttm/ttm_bo_vm.c
index 609a85a4d855127288cc30e234333d516a58e7d2..668dbe8b8dd3c9e486ebd483942c827dcd8d40a6 100644
(file)
--- 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;
}