Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jul 2013 13:52:40 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r253497 - head/sys/dev/drm2/i915
Message-ID:  <201307201352.r6KDqeKc092926@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sat Jul 20 13:52:40 2013
New Revision: 253497
URL: http://svnweb.freebsd.org/changeset/base/253497

Log:
  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

Modified:
  head/sys/dev/drm2/i915/i915_gem.c

Modified: head/sys/dev/drm2/i915/i915_gem.c
==============================================================================
--- head/sys/dev/drm2/i915/i915_gem.c	Sat Jul 20 13:41:25 2013	(r253496)
+++ head/sys/dev/drm2/i915/i915_gem.c	Sat Jul 20 13:52:40 2013	(r253497)
@@ -1290,7 +1290,7 @@ i915_gem_mmap_ioctl(struct drm_device *d
 	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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307201352.r6KDqeKc092926>