misc: mods: fix userspace pointer type

Bug 3528414

Change-Id: I7376f3b51a0f1b9ee93be340634da4cf2f5fcbcc
Signed-off-by: Chris Dragan <kdragan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2668746
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Ketan Patil <ketanp@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Chris Dragan
2022-02-11 05:17:48 -08:00
committed by Laxman Dewangan
parent fc5605722c
commit 5335da0508

View File

@@ -1798,7 +1798,7 @@ static long mods_krnl_ioctl(struct file *fp,
{
int err = 0;
void *arg_copy = NULL;
void *arg = (void *)i_arg;
void __user *arg = (void __user *)i_arg;
struct mods_client *client = fp->private_data;
int arg_size;
char buf[64];