diff options
Diffstat (limited to 'sys/dev/pci/drm/drm_vm.c')
-rw-r--r-- | sys/dev/pci/drm/drm_vm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/drm/drm_vm.c b/sys/dev/pci/drm/drm_vm.c index b24d8db1a80..8f6660e2189 100644 --- a/sys/dev/pci/drm/drm_vm.c +++ b/sys/dev/pci/drm/drm_vm.c @@ -76,9 +76,9 @@ drmmmap(dev_t kdev, off_t offset, int prot) */ DRM_LOCK(); TAILQ_FOREACH(map, &dev->maplist, link) { - if (offset >= map->mm->start && - offset < map->mm->start + map->size) { - offset -= map->mm->start; + if (offset >= map->ext && + offset < map->ext + map->size) { + offset -= map->ext; break; } } |