diff options
author | Jon Smirl <jonsmirl@yahoo.com> | 2005-06-20 15:40:48 +0000 |
---|---|---|
committer | Jon Smirl <jonsmirl@yahoo.com> | 2005-06-20 15:40:48 +0000 |
commit | 298b6fcedbc3a521c2218404a96de0754dbb4f02 (patch) | |
tree | 546a2d36b511511a236977b8ff47199f1d7969ad | |
parent | ae2264d3c9a4938b1202c4301587c7214c2c4293 (diff) |
Change initialization of radeon register access to _DRM_READ_ONLY. Flags of
zero does not mean no privs, instead it grants write access
_DRM_READ_ONLY only applies to non-root users. Problem is only in CVS,
initmaps are not in the kernel yet.
-rw-r--r-- | shared-core/radeon_cp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-core/radeon_cp.c b/shared-core/radeon_cp.c index f9ff830c..b5e74451 100644 --- a/shared-core/radeon_cp.c +++ b/shared-core/radeon_cp.c @@ -2035,7 +2035,7 @@ int radeon_preinit(struct drm_device *dev, unsigned long flags) } ret = drm_initmap(dev, drm_get_resource_start(dev, 2), - drm_get_resource_len(dev, 2), 2, _DRM_REGISTERS, 0); + drm_get_resource_len(dev, 2), 2, _DRM_REGISTERS, _DRM_READ_ONLY); if (ret != 0) return ret; |