We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c9dc07 commit ca9e45bCopy full SHA for ca9e45b
drivers/vfio/vfio_main.c
@@ -1146,6 +1146,7 @@ static long vfio_device_fops_unl_ioctl(struct file *filep,
1146
{
1147
struct vfio_device_file *df = filep->private_data;
1148
struct vfio_device *device = df->device;
1149
+ void __user *uptr = (void __user *)arg;
1150
int ret;
1151
1152
/* Paired with smp_store_release() following vfio_df_open() */
@@ -1158,7 +1159,7 @@ static long vfio_device_fops_unl_ioctl(struct file *filep,
1158
1159
1160
switch (cmd) {
1161
case VFIO_DEVICE_FEATURE:
- ret = vfio_ioctl_device_feature(device, (void __user *)arg);
1162
+ ret = vfio_ioctl_device_feature(device, uptr);
1163
break;
1164
1165
default:
0 commit comments