summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorDave Airlie <airlied@panoply-rh.(none)>2008-03-06 14:43:23 +1000
committerDave Airlie <airlied@panoply-rh.(none)>2008-03-06 14:43:23 +1000
commit92a30dd608c2838dea97efc04e1447056f37d0b5 (patch)
tree78388be26f1e0f4bc215272985fad2ab69426a86 /linux-core
parenta875821f7b19a1bcee238cef5c3b507d2869542d (diff)
drm/bo: allow non-suser priv to add kernel BOs.
modprobe can be run with dropped capabilities we still want the kernel bos to work.
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drm_bo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_bo.c b/linux-core/drm_bo.c
index 3e8ffa0f..fd3cf9db 100644
--- a/linux-core/drm_bo.c
+++ b/linux-core/drm_bo.c
@@ -970,7 +970,7 @@ static int drm_bo_modify_proposed_flags (struct drm_buffer_object *bo,
return -EINVAL;
}
- if ((new_mask & DRM_BO_FLAG_NO_EVICT) && !DRM_SUSER(DRM_CURPROC)) {
+ if (bo->type != drm_bo_type_kernel && (new_mask & DRM_BO_FLAG_NO_EVICT) && !DRM_SUSER(DRM_CURPROC)) {
DRM_ERROR("DRM_BO_FLAG_NO_EVICT is only available to priviliged processes.\n");
return -EPERM;
}