mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-09 02:48:04 +02:00
Change initialization of savage 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.
This commit is contained in:
parent
298b6fcedb
commit
9fb77e869f
1 changed files with 1 additions and 1 deletions
|
|
@ -624,7 +624,7 @@ int savage_preinit(drm_device_t *dev, unsigned long chipset)
|
|||
}
|
||||
|
||||
if ((ret = drm_initmap(dev, mmio_base, SAVAGE_MMIO_SIZE, 0,
|
||||
_DRM_REGISTERS, 0)))
|
||||
_DRM_REGISTERS, _DRM_READ_ONLY)))
|
||||
return ret;
|
||||
if (!(dev_priv->mmio = drm_core_findmap (dev, mmio_base)))
|
||||
return DRM_ERR(ENOMEM);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue