From daf3fe7d5e014d49a6b76097158e88ac7b16bfee Mon Sep 17 00:00:00 2001 From: Cho KyongHo Date: Thu, 23 Nov 2017 17:21:08 +0900 Subject: [PATCH] [COMMON] media: m2m1shot: fix implicit type conversion Prevent CID: 201932 Change-Id: I506141fee3de6d9d4e62b83ab4211bdf84a3c366 Signed-off-by: Cho KyongHo --- drivers/media/m2m1shot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/m2m1shot.c b/drivers/media/m2m1shot.c index c9ea2d1c9bc0..a8944a7040cc 100644 --- a/drivers/media/m2m1shot.c +++ b/drivers/media/m2m1shot.c @@ -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, -- 2.20.1