diff options
Diffstat (limited to 'linux-core')
-rw-r--r-- | linux-core/drm_bufs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/linux-core/drm_bufs.c b/linux-core/drm_bufs.c index e30e6de8..577a1c99 100644 --- a/linux-core/drm_bufs.c +++ b/linux-core/drm_bufs.c @@ -148,7 +148,9 @@ int DRM(addmap)( struct inode *inode, struct file *filp, MTRR_TYPE_WRCOMB, 1 ); } #endif - map->handle = DRM(ioremap)( map->offset, map->size, dev ); + if (map->type == _DRM_REGISTERS) + map->handle = DRM(ioremap)( map->offset, map->size, + dev ); break; case _DRM_SHM: |