mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
media: i2c: ov50c40: fix cannot get channel info on android
Signed-off-by: Hu Kejun <william.hu@rock-chips.com> Change-Id: I60a02c71bd2bd8970a608d5fffdca74801ca8efc
This commit is contained in:
@@ -6429,6 +6429,12 @@ static long ov50c40_compat_ioctl32(struct v4l2_subdev *sd,
|
||||
return ret;
|
||||
}
|
||||
|
||||
ret = copy_from_user(ch_info, up, sizeof(*ch_info));
|
||||
if (ret) {
|
||||
ret = -EFAULT;
|
||||
return ret;
|
||||
}
|
||||
|
||||
ret = ov50c40_ioctl(sd, cmd, ch_info);
|
||||
if (!ret) {
|
||||
ret = copy_to_user(up, ch_info, sizeof(*ch_info));
|
||||
|
||||
Reference in New Issue
Block a user