Use right size when freeing unneeded GTT mapping.

MFC after:	3 days
This commit is contained in:
Konstantin Belousov 2012-06-15 08:50:44 +00:00
parent b44f8e5e1e
commit 92bd74bb2f

View File

@ -1064,7 +1064,7 @@ i915_gem_gtt_write(struct drm_device *dev, struct drm_i915_gem_object *obj,
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);
}