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

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

Merge "msm: camera: Return -NOTTY on invalid ioctl command."

parents bb516d36 f80627ce
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -746,6 +746,16 @@ static long msm_private_ioctl(struct file *file, void *fh,
	if (!event_data)
		return -EINVAL;

	switch (cmd) {
	case MSM_CAM_V4L2_IOCTL_NOTIFY:
	case MSM_CAM_V4L2_IOCTL_CMD_ACK:
	case MSM_CAM_V4L2_IOCTL_NOTIFY_DEBUG:
	case MSM_CAM_V4L2_IOCTL_NOTIFY_ERROR:
		break;
	default:
		return -ENOTTY;
	}

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