From 59cc1d8256fb3b6e2374e52eb24da12b046aea91 Mon Sep 17 00:00:00 2001 From: Jon Smirl Date: Mon, 20 Sep 2004 17:09:26 +0000 Subject: Felix's fix for map request smaller than permanent map size --- linux-core/drm_bufs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux-core/drm_bufs.c') diff --git a/linux-core/drm_bufs.c b/linux-core/drm_bufs.c index 46cff57d..84ca1f47 100644 --- a/linux-core/drm_bufs.c +++ b/linux-core/drm_bufs.c @@ -186,7 +186,7 @@ int DRM(addmap)( struct inode *inode, struct file *filp, 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 ) { + _entry->map->size >= map->size ) { 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