mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-05 18:05:16 +00:00
Mark the permanent map for radeon registers read-only. Failure to set this flag
allowed writing to the registers by any user that can open the DRI device, and therefore ability to initiate DMA. This came in with the merge from DRI CVS on 2005-04-15. Approved by: re (scottl) Obtained from: DRM CVS
This commit is contained in:
parent
ff50922b16
commit
f3eb3a3b13
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=147590
@ -2032,7 +2032,8 @@ 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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user