|
@@ -1529,7 +1529,7 @@ static int eb_copy_relocations(const struct i915_execbuffer *eb)
|
|
min_t(u64, BIT_ULL(31), size - copied);
|
|
min_t(u64, BIT_ULL(31), size - copied);
|
|
|
|
|
|
if (__copy_from_user((char *)relocs + copied,
|
|
if (__copy_from_user((char *)relocs + copied,
|
|
- (char *)urelocs + copied,
|
|
|
|
|
|
+ (char __user *)urelocs + copied,
|
|
len)) {
|
|
len)) {
|
|
kvfree(relocs);
|
|
kvfree(relocs);
|
|
err = -EFAULT;
|
|
err = -EFAULT;
|