Skip to content

Commit b194ef2

Browse files
author
Desnes Nunes
committed
media: cx231xx: set device_caps for 417
JIRA: https://issues.redhat.com/browse/RHEL-78934 CVE: CVE-2025-38044 commit a79efc4 Author: Hans Verkuil <hverkuil@xs4all.nl> Date: Mon, 24 Feb 2025 14:13:24 +0100 The video_device for the MPEG encoder did not set device_caps. Add this, otherwise the video device can't be registered (you get a WARN_ON instead). Not seen before since currently 417 support is disabled, but I found this while experimenting with it. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Desnes Nunes <desnesn@redhat.com>
1 parent 68ee7a4 commit b194ef2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/media/usb/cx231xx/cx231xx-417.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1720,6 +1720,8 @@ static void cx231xx_video_dev_init(
17201720
vfd->lock = &dev->lock;
17211721
vfd->release = video_device_release_empty;
17221722
vfd->ctrl_handler = &dev->mpeg_ctrl_handler.hdl;
1723+
vfd->device_caps = V4L2_CAP_READWRITE | V4L2_CAP_STREAMING |
1724+
V4L2_CAP_VIDEO_CAPTURE;
17231725
video_set_drvdata(vfd, dev);
17241726
if (dev->tuner_type == TUNER_ABSENT) {
17251727
v4l2_disable_ioctl(vfd, VIDIOC_G_FREQUENCY);

0 commit comments

Comments
 (0)