media: atomisp: fix a broken compat32 code
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 19 Apr 2020 12:02:03 +0000 (14:02 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 20 May 2020 10:32:14 +0000 (12:32 +0200)
There's a typo at the compat32 code, with forgot to get the
pointer address, causing the driver to not build.

Not sure why this didn't produce an error back when the
driver got removed.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/atomisp2/atomisp_compat_ioctl32.c

index 4032331..fd53550 100644 (file)
@@ -103,7 +103,7 @@ static int get_atomisp_dis_statistics32(struct atomisp_dis_statistics *kp,
            get_user(hor_prod_even_imag, &up->dvs2_stat.hor_prod.even_imag) ||
            get_user(ver_prod_odd_real, &up->dvs2_stat.ver_prod.odd_real) ||
            get_user(ver_prod_odd_imag, &up->dvs2_stat.ver_prod.odd_imag) ||
-           get_user(ver_prod_even_real, up->dvs2_stat.ver_prod.even_real) ||
+           get_user(ver_prod_even_real, &up->dvs2_stat.ver_prod.even_real) ||
            get_user(ver_prod_even_imag, &up->dvs2_stat.ver_prod.even_imag) ||
            get_user(kp->exp_id, &up->exp_id))
                return -EFAULT;