summaryrefslogtreecommitdiff
path: root/shared/via_map.c
diff options
context:
space:
mode:
authorThomas Hellstrom <unichrome@shipmail.org>2004-12-06 11:19:23 +0000
committerThomas Hellstrom <unichrome@shipmail.org>2004-12-06 11:19:23 +0000
commit1fbfd9eb32220a10d66373b77172965cfeccd4f7 (patch)
treeb3d575f5a2a104b28aece230c6983e88c8d66908 /shared/via_map.c
parent267e0645272720344eb7556a948e72112edbe2ec (diff)
Security and optimization fixes for the via drm:
1. The command verifier was never initialized in the non-core source tree. 2. Check added that the AGP ring buffer has been initialized before accepting command buffer. 3. Free space check in the AGP buffer is moved to after command verification, which is more optimal in most cases.
Diffstat (limited to 'shared/via_map.c')
-rw-r--r--shared/via_map.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/shared/via_map.c b/shared/via_map.c
index 3aa66a17..ac8f105f 100644
--- a/shared/via_map.c
+++ b/shared/via_map.c
@@ -33,6 +33,7 @@ int via_do_init_map(drm_device_t * dev, drm_via_init_t * init)
DRM_DEBUG("%s\n", __FUNCTION__);
+ via_init_command_verifier();
dev_priv = DRM(alloc) (sizeof(drm_via_private_t), DRM_MEM_DRIVER);
if (dev_priv == NULL)
return -ENOMEM;