Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Hans de Goede and committed by
Mauro Carvalho Chehab
b36b5059 60659dd4

+3
+3
drivers/media/video/v4l2-event.c
··· 215 215 unsigned long flags; 216 216 unsigned i; 217 217 218 + if (sub->type == V4L2_EVENT_ALL) 219 + return -EINVAL; 220 + 218 221 if (elems < 1) 219 222 elems = 1; 220 223 if (sub->type == V4L2_EVENT_CTRL) {