Prevent CID: 201932
Change-Id: I506141fee3de6d9d4e62b83ab4211bdf84a3c366
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
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,