diff options
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index 818576654092..6b209db8370d 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c | |||
@@ -215,7 +215,7 @@ fast_user_write(struct io_mapping *mapping, | |||
215 | 215 | ||
216 | vaddr_atomic = io_mapping_map_atomic_wc(mapping, page_base); | 216 | vaddr_atomic = io_mapping_map_atomic_wc(mapping, page_base); |
217 | unwritten = __copy_from_user_inatomic_nocache(vaddr_atomic + page_offset, | 217 | unwritten = __copy_from_user_inatomic_nocache(vaddr_atomic + page_offset, |
218 | user_data, length); | 218 | user_data, length, length); |
219 | io_mapping_unmap_atomic(vaddr_atomic); | 219 | io_mapping_unmap_atomic(vaddr_atomic); |
220 | if (unwritten) | 220 | if (unwritten) |
221 | return -EFAULT; | 221 | return -EFAULT; |