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

Commit c28296b9 authored by Manish Poddar's avatar Manish Poddar Committed by VijayaKumar T M
Browse files

msm: camera: Fix NULL pointer dereference in msm_vb2.c



Added check to avoid NULL pointer dereference
in msm_vb2.c

Change-Id: I89e9d0416d625fee887a31e53a9ecd3268732fb6
Signed-off-by: default avatarManish Poddar <mpoddar@codeaurora.org>
Signed-off-by: default avatarVijayaKumar T M <vtmuni@codeaurora.org>
parent bfd96c27
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -717,6 +717,9 @@ static long msm_private_ioctl(struct file *file, void *fh,
		return 0;
	}

	if (!event_data)
		return -EINVAL;

	memset(&event, 0, sizeof(struct v4l2_event));
	session_id = event_data->session_id;
	stream_id = event_data->stream_id;