diff options
-rw-r--r-- | linux-core/drm_bufs.c | 1 | ||||
-rw-r--r-- | linux/drm_bufs.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/linux-core/drm_bufs.c b/linux-core/drm_bufs.c index f48ef6f1..5058a1d3 100644 --- a/linux-core/drm_bufs.c +++ b/linux-core/drm_bufs.c @@ -190,6 +190,7 @@ int DRM(addmap)( struct inode *inode, struct file *filp, _entry->map->offset, _entry->map->size, _entry->map->type ); if ( _entry->map && map->type == _entry->map->type && map->offset == _entry->map->offset ) { + _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", diff --git a/linux/drm_bufs.h b/linux/drm_bufs.h index f48ef6f1..5058a1d3 100644 --- a/linux/drm_bufs.h +++ b/linux/drm_bufs.h @@ -190,6 +190,7 @@ int DRM(addmap)( struct inode *inode, struct file *filp, _entry->map->offset, _entry->map->size, _entry->map->type ); if ( _entry->map && map->type == _entry->map->type && map->offset == _entry->map->offset ) { + _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", |