From f2ad4d9bebd052e5b7c9a90c4a813830bd1b72f8 Mon Sep 17 00:00:00 2001 From: Gareth Hughes Date: Sun, 18 Mar 2001 23:54:41 +0000 Subject: __REALLY_HAVE_MTRR, vmalloc_32 fixes from Jeff Wiedemeier. --- linux-core/drm_vm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linux-core/drm_vm.c') diff --git a/linux-core/drm_vm.c b/linux-core/drm_vm.c index 123eea29..fb51926b 100644 --- a/linux-core/drm_vm.c +++ b/linux-core/drm_vm.c @@ -156,7 +156,7 @@ void DRM(vm_shm_close)(struct vm_area_struct *vma) } } /* We were the only map that was found */ - if(found_maps == 1 && + if(found_maps == 1 && map->flags & _DRM_REMOVABLE) { /* Check to see if we are in the maplist, if we are not, then * we delete this mappings information. @@ -172,7 +172,7 @@ void DRM(vm_shm_close)(struct vm_area_struct *vma) switch (map->type) { case _DRM_REGISTERS: case _DRM_FRAME_BUFFER: -#ifdef __REALLY_HAVE_MTRR +#if __REALLY_HAVE_MTRR if (map->mtrr >= 0) { int retcode; retcode = mtrr_del(map->mtrr, -- cgit v1.2.3