|
@@ -2294,7 +2294,7 @@ static int dvb_frontend_handle_ioctl(struct file *file,
|
|
|
if (!tvps->num || (tvps->num > DTV_IOCTL_MAX_MSGS))
|
|
|
return -EINVAL;
|
|
|
|
|
|
- tvp = memdup_user(tvps->props, tvps->num * sizeof(*tvp));
|
|
|
+ tvp = memdup_user((void __user *)tvps->props, tvps->num * sizeof(*tvp));
|
|
|
if (IS_ERR(tvp))
|
|
|
return PTR_ERR(tvp);
|
|
|
|
|
@@ -2328,7 +2328,7 @@ static int dvb_frontend_handle_ioctl(struct file *file,
|
|
|
if (!tvps->num || (tvps->num > DTV_IOCTL_MAX_MSGS))
|
|
|
return -EINVAL;
|
|
|
|
|
|
- tvp = memdup_user(tvps->props, tvps->num * sizeof(*tvp));
|
|
|
+ tvp = memdup_user((void __user *)tvps->props, tvps->num * sizeof(*tvp));
|
|
|
if (IS_ERR(tvp))
|
|
|
return PTR_ERR(tvp);
|
|
|
|