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); _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"