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

Commit b36b5059 authored by Hans de Goede's avatar Hans de Goede Committed by Mauro Carvalho Chehab
Browse files

[media] v4l2-event: Deny subscribing with a type of V4L2_EVENT_ALL

parent 60659dd4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -215,6 +215,9 @@ int v4l2_event_subscribe(struct v4l2_fh *fh,
	unsigned long flags;
	unsigned i;

	if (sub->type == V4L2_EVENT_ALL)
		return -EINVAL;

	if (elems < 1)
		elems = 1;
	if (sub->type == V4L2_EVENT_CTRL) {