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

Commit 53d2912c authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera2: cpp: Fix out-of-scope pointer variable"

parents 13fba9e6 5ea7e88b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -3555,6 +3555,7 @@ static long msm_cpp_subdev_fops_compat_ioctl(struct file *file,
	struct msm_cpp_stream_buff_info_t k_cpp_buff_info;
	struct msm_cpp_stream_buff_info_t k_cpp_buff_info;
	struct msm_cpp_frame_info32_t k32_frame_info;
	struct msm_cpp_frame_info32_t k32_frame_info;
	struct msm_cpp_frame_info_t k64_frame_info;
	struct msm_cpp_frame_info_t k64_frame_info;
	uint32_t identity_k = 0;
	void __user *up = (void __user *)arg;
	void __user *up = (void __user *)arg;


	if (sd == NULL) {
	if (sd == NULL) {
@@ -3723,7 +3724,6 @@ static long msm_cpp_subdev_fops_compat_ioctl(struct file *file,
		break;
		break;
	}
	}
	case VIDIOC_MSM_CPP_DEQUEUE_STREAM_BUFF_INFO32: {
	case VIDIOC_MSM_CPP_DEQUEUE_STREAM_BUFF_INFO32: {
		uint32_t identity_k = 0;
		uint32_t *identity_u = (uint32_t *)kp_ioctl.ioctl_ptr;
		uint32_t *identity_u = (uint32_t *)kp_ioctl.ioctl_ptr;


		get_user(identity_k, identity_u);
		get_user(identity_k, identity_u);