Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 36005878 authored by Iliya Varadzhakov's avatar Iliya Varadzhakov
Browse files

msm: cpp: Fix compat code error



Some IOCTL calls needs special treatment in case of
compat. The compat code shpuld not brake the functionality
of the ioctl function itself.

Signed-off-by: default avatarIliya Varadzhakov <ivarad@codeaurora.org>
Change-Id: If5fb2121fd484dbf740a565e0a63189423eef798
parent d19e883c
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1747,7 +1747,7 @@ long msm_cpp_subdev_ioctl(struct v4l2_subdev *sd,
			memcpy(u_stream_buff_info, ioctl_ptr->ioctl_ptr,
					ioctl_ptr->len);
		} else
#else
#endif
		{
			rc = (copy_from_user(u_stream_buff_info,
					(void __user *)ioctl_ptr->ioctl_ptr,
@@ -1759,7 +1759,6 @@ long msm_cpp_subdev_ioctl(struct v4l2_subdev *sd,
				return -EINVAL;
			}
		}
#endif
		if (u_stream_buff_info->num_buffs == 0) {
			pr_err("%s:%d: Invalid number of buffers\n", __func__,
				__LINE__);