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

Commit 5a535744 authored by Cherian Deepak's avatar Cherian Deepak
Browse files

msm: camera: Avoid uninitialized data copy to userspace



Add proper intialization to avoid invalid access in
userspace.

CRs-fixed: 552359
Change-Id: Iea1d6684fb4b061f7ab51945f15387b7f686ccf3
Signed-off-by: default avatarDeepak Cherian <dcheri@codeaurora.org>
parent 60e6ad84
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1798,6 +1798,7 @@ static long msm_cpp_subdev_do_ioctl(
		struct cpp_device *cpp_dev = v4l2_get_subdevdata(sd);
		struct msm_camera_v4l2_ioctl_t *ioctl_ptr = arg;
		struct msm_cpp_frame_info_t inst_info;
		memset(&inst_info, 0, sizeof(struct msm_cpp_frame_info_t));
		for (i = 0; i < MAX_ACTIVE_CPP_INSTANCE; i++) {
			if (cpp_dev->cpp_subscribe_list[i].vfh == vfh) {
				inst_info.inst_id = i;