The kernel check was added in [1] v5.4-rc1 by: Author: Hans Verkuil <hverkuil-ci...@xs4all.nl> Date: Tue Jul 23 04:21:25 2019 -0400
media: v4l2-dev/ioctl: require non-zero device_caps, verify sane querycap results Now that all V4L2 drivers set device_caps in struct video_device, we can add a check for this to ensure all future drivers fill this in. Also verify that when the querycap ioctl is called the driver didn't mess with the device_caps value and that capabilities is a superset of device_caps. Signed-off-by: Hans Verkuil <hverkuil-ci...@xs4all.nl> Reviewed-by: Sakari Ailus <sakari.ai...@linux.intel.com> [hverkuil-ci...@xs4all.nl: fix too-long line] Signed-off-by: Mauro Carvalho Chehab <mchehab+sams...@kernel.org> [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3c1350501c21db8e3b1a38d9e97db29694305c3b ** Patch added: "v2: clarify why upstreaming is not needed" https://bugs.launchpad.net/ubuntu/+source/v4l2loopback/+bug/1899633/+attachment/5424119/+files/focal-proposed-fix.debdiff ** Patch removed: "focal-proposed-fix.debdiff" https://bugs.launchpad.net/ubuntu/+source/v4l2loopback/+bug/1899633/+attachment/5421730/+files/focal-proposed-fix.debdiff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1899633 Title: Repeated kernel warnings/stacktraces with kernel 5.4 and newer To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/v4l2loopback/+bug/1899633/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs