svn commit: r237201 - stable/9/sys/dev/drm2/i915

Konstantin Belousov kib at FreeBSD.org
Sun Jun 17 19:16:32 UTC 2012


Author: kib
Date: Sun Jun 17 19:16:31 2012
New Revision: 237201
URL: http://svn.freebsd.org/changeset/base/237201

Log:
  MFC r237131:
  Use right size when freeing unneeded GTT mapping.

Modified:
  stable/9/sys/dev/drm2/i915/i915_gem.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/dev/   (props changed)

Modified: stable/9/sys/dev/drm2/i915/i915_gem.c
==============================================================================
--- stable/9/sys/dev/drm2/i915/i915_gem.c	Sun Jun 17 18:34:04 2012	(r237200)
+++ stable/9/sys/dev/drm2/i915/i915_gem.c	Sun Jun 17 19:16:31 2012	(r237201)
@@ -1064,7 +1064,7 @@ i915_gem_gtt_write(struct drm_device *de
 	    IDX_TO_OFF(obj_pi), size, PAT_WRITE_COMBINING);
 	ret = -copyin_nofault((void *)(uintptr_t)data_ptr, (char *)mkva +
 	    obj_po, size);
-	pmap_unmapdev(mkva, PAGE_SIZE);
+	pmap_unmapdev(mkva, size);
 	return (ret);
 }
 


More information about the svn-src-stable-9 mailing list