From 1fbfd9eb32220a10d66373b77172965cfeccd4f7 Mon Sep 17 00:00:00 2001 From: Thomas Hellstrom Date: Mon, 6 Dec 2004 11:19:23 +0000 Subject: 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. --- shared/via_map.c | 1 + 1 file changed, 1 insertion(+) (limited to 'shared/via_map.c') 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; -- cgit v1.2.3