aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2013-07-20 13:52:40 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2013-07-20 13:52:40 +0000
commitda6335eb54bb33dd94c84fb93b3bc60faa9a8a77 (patch)
tree85103e6ad1297da624f2d0c14e9061fccc761ed4
parentc5d03637090b64b668293878734804350715624f (diff)
downloadsrc-da6335eb54bb33dd94c84fb93b3bc60faa9a8a77.tar.gz
src-da6335eb54bb33dd94c84fb93b3bc60faa9a8a77.zip
Use the right name for the vm_map_find(9) flag to specify shared
mapping. The MAP_SHARED and MAP_INHERIT_SHARE values are identical. Noted by: alc MFC after: 3 days
Notes
Notes: svn path=/head/; revision=253497
-rw-r--r--sys/dev/drm2/i915/i915_gem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/drm2/i915/i915_gem.c b/sys/dev/drm2/i915/i915_gem.c
index 398fb0de7cd0..6b8bce351f19 100644
--- a/sys/dev/drm2/i915/i915_gem.c
+++ b/sys/dev/drm2/i915/i915_gem.c
@@ -1290,7 +1290,7 @@ i915_gem_mmap_ioctl(struct drm_device *dev, void *data,
DRM_UNLOCK(dev);
rv = vm_map_find(map, obj->vm_obj, args->offset, &addr, args->size,
VMFS_OPTIMAL_SPACE, VM_PROT_READ | VM_PROT_WRITE,
- VM_PROT_READ | VM_PROT_WRITE, MAP_SHARED);
+ VM_PROT_READ | VM_PROT_WRITE, MAP_INHERIT_SHARE);
if (rv != KERN_SUCCESS) {
vm_object_deallocate(obj->vm_obj);
error = -vm_mmap_to_errno(rv);