[COMMON] media: m2m1shot: fix implicit type conversion
authorCho KyongHo <pullip.cho@samsung.com>
Thu, 23 Nov 2017 08:21:08 +0000 (17:21 +0900)
committerSeungchul Kim <sc377.kim@samsung.com>
Mon, 28 May 2018 05:28:14 +0000 (14:28 +0900)
Prevent CID: 201932

Change-Id: I506141fee3de6d9d4e62b83ab4211bdf84a3c366
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
drivers/media/m2m1shot.c

index c9ea2d1c9bc03bba72467ca7c3dfd156611ae495..a8944a7040cc25197855f42e16e449b08e8e4fd5 100644 (file)
@@ -720,8 +720,8 @@ static long m2m1shot_compat_ioctl32(struct file *filp,
                data.op.quality_level = task.task.op.quality_level;
                data.op.rotate = task.task.op.rotate;
                data.op.op = task.task.op.op;
-               data.reserved[0] = task.task.reserved[0];
-               data.reserved[1] = task.task.reserved[1];
+               data.reserved[0] = (compat_ulong_t)task.task.reserved[0];
+               data.reserved[1] = (compat_ulong_t)task.task.reserved[1];
 
                if (copy_to_user(compat_ptr(arg), &data, sizeof(data))) {
                        dev_err(m21dev->dev,