Use right size when freeing unneeded GTT mapping.
MFC after: 3 days
This commit is contained in:
parent
b44f8e5e1e
commit
92bd74bb2f
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user