|
@@ -1139,7 +1139,7 @@ static long ion_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
|
|
|
if (IS_ERR(handle))
|
|
|
return PTR_ERR(handle);
|
|
|
|
|
|
- data.handle = (ion_user_handle_t)handle->id;
|
|
|
+ data.handle = handle->id;
|
|
|
|
|
|
if (copy_to_user((void __user *)arg, &data, sizeof(data))) {
|
|
|
ion_free(client, handle);
|
|
@@ -1156,7 +1156,7 @@ static long ion_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
|
|
|
sizeof(struct ion_handle_data)))
|
|
|
return -EFAULT;
|
|
|
mutex_lock(&client->lock);
|
|
|
- handle = ion_uhandle_get(client, (int)data.handle);
|
|
|
+ handle = ion_uhandle_get(client, data.handle);
|
|
|
mutex_unlock(&client->lock);
|
|
|
if (!handle)
|
|
|
return -EINVAL;
|
|
@@ -1171,7 +1171,7 @@ static long ion_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
|
|
|
|
|
|
if (copy_from_user(&data, (void __user *)arg, sizeof(data)))
|
|
|
return -EFAULT;
|
|
|
- handle = ion_uhandle_get(client, (int)data.handle);
|
|
|
+ handle = ion_uhandle_get(client, data.handle);
|
|
|
data.fd = ion_share_dma_buf_fd(client, handle);
|
|
|
if (copy_to_user((void __user *)arg, &data, sizeof(data)))
|
|
|
return -EFAULT;
|
|
@@ -1191,7 +1191,7 @@ static long ion_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
|
|
|
if (IS_ERR(handle))
|
|
|
ret = PTR_ERR(handle);
|
|
|
else
|
|
|
- data.handle = (ion_user_handle_t)handle->id;
|
|
|
+ data.handle = handle->id;
|
|
|
|
|
|
if (copy_to_user((void __user *)arg, &data,
|
|
|
sizeof(struct ion_fd_data)))
|