Loading
usb: gadget: uvc: fix try format returns on uncompressed formats
mainline inclusion from mainline-v6.10-rc1 commit 7a700d8f2431b681f2dae1118d62177719912f5d category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IAYRHZ CVE: CVE-2024-50056 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7a700d8f2431b681f2dae1118d62177719912f5d -------------------------------- When setting uncompressed formats, the values of bytesperline and sizeimage can already be determined by using the v4l2_fill_pixfmt helper function. We change the try_fmt function to use the helper instead. Signed-off-by:Michael Grzeschik <m.grzeschik@pengutronix.de> Link: https://lore.kernel.org/r/20240221-uvc-gadget-uncompressed-v1-1-f55e97287cae@pengutronix.de Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
Heyuan Wang <wangheyuan2@h-partners.com>