From 6f31c42fe923ff3f79a55d8c859e6ccfd3bd322d Mon Sep 17 00:00:00 2001 From: Jon Smirl Date: Mon, 20 Sep 2004 19:23:27 +0000 Subject: Remove size restriction on permanent addmap --- linux-core/drm_bufs.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'linux-core/drm_bufs.c') diff --git a/linux-core/drm_bufs.c b/linux-core/drm_bufs.c index 84ca1f47..f48ef6f1 100644 --- a/linux-core/drm_bufs.c +++ b/linux-core/drm_bufs.c @@ -182,11 +182,14 @@ int DRM(addmap)( struct inode *inode, struct file *filp, /* If permanent maps are implemented, maps must match */ if (permanent_maps) { + DRM_DEBUG( "Looking for: offset = 0x%08lx, size = 0x%08lx, type = %d\n", + map->offset, map->size, map->type ); list_for_each( _list, &dev->maplist->head ) { drm_map_list_t *_entry = list_entry( _list, drm_map_list_t, head ); - if ( _entry->map && _entry->map->type == map->type && - _entry->map->offset == map->offset && - _entry->map->size >= map->size ) { + DRM_DEBUG( "Checking: offset = 0x%08lx, size = 0x%08lx, type = %d\n", + _entry->map->offset, _entry->map->size, _entry->map->type ); + if ( _entry->map && map->type == _entry->map->type && + map->offset == _entry->map->offset ) { DRM(free)( map, sizeof(*map), DRM_MEM_MAPS ); map = _entry->map; DRM_DEBUG( "Found existing: offset = 0x%08lx, size = 0x%08lx, type = %d\n", -- cgit v1.2.3