aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdns3-gadget.c
diff options
context:
space:
mode:
authorLaurent Pinchart <[email protected]>2023-04-20 09:45:59 +0000
committerMauro Carvalho Chehab <[email protected]>2023-06-02 17:48:02 +0000
commit81f3affa19d6ab0c32aef46b053838219eef7e71 (patch)
tree2e2b64b8eb598dbd6a1294708667edfba531aa3b /drivers/usb/cdns3/cdns3-gadget.c
parentmedia: v4l2-subdev: Fix missing kerneldoc for client_caps (diff)
downloadkernel-81f3affa19d6ab0c32aef46b053838219eef7e71.tar.gz
kernel-81f3affa19d6ab0c32aef46b053838219eef7e71.zip
media: uvcvideo: Don't expose unsupported formats to userspace
When the uvcvideo driver encounters a format descriptor with an unknown format GUID, it creates a corresponding struct uvc_format instance with the fcc field set to 0. Since commit 50459f103edf ("media: uvcvideo: Remove format descriptions"), the driver relies on the V4L2 core to provide the format description string, which the V4L2 core can't do without a valid 4CC. This triggers a WARN_ON. As a format with a zero 4CC can't be selected, it is unusable for applications. Ignore the format completely without creating a uvc_format instance, which fixes the warning. Link: https://bugzilla.kernel.org/show_bug.cgi?id=217252 Link: https://bugzilla.redhat.com/show_bug.cgi?id=2180107 Fixes: 50459f103edf ("media: uvcvideo: Remove format descriptions") Signed-off-by: Laurent Pinchart <[email protected]> Reviewed-by: Ricardo Ribalda <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-gadget.c')
0 files changed, 0 insertions, 0 deletions