From owner-svn-src-head@FreeBSD.ORG Sat Jul 20 13:52:41 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 34DDC215; Sat, 20 Jul 2013 13:52:41 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 261E827E; Sat, 20 Jul 2013 13:52:41 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r6KDqewq092927; Sat, 20 Jul 2013 13:52:40 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r6KDqeKc092926; Sat, 20 Jul 2013 13:52:40 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201307201352.r6KDqeKc092926@svn.freebsd.org> From: Konstantin Belousov Date: Sat, 20 Jul 2013 13:52:40 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r253497 - head/sys/dev/drm2/i915 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jul 2013 13:52:41 -0000 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);