diff options
author | Michael Grzeschik <m.grzeschik@pengutronix.de> | 2022-10-26 20:22:40 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-11-22 16:50:22 +0100 |
commit | 181babf7b4e5050b7a23cb47eb06277405cf132f (patch) | |
tree | a2eec39dc4c673941d678327a70e5c3582a2807d /lib/test_fortify/write_overflow-strcpy.c | |
parent | eb7081409f94a9a8608593d0fb63a1aa3d6f95d8 (diff) |
usb: gadget: uvc: also use try_format in set_format
Since e219a712bc06 (usb: gadget: uvc: add v4l2 try_format api call) the
try_format function is available. With this function includes checks for
valid configurations programmed in the configfs. We use this function to
ensure to return valid values on the set_format callback.
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Fixes: e219a712bc06 ("usb: gadget: uvc: add v4l2 try_format api call")
Link: https://lore.kernel.org/r/20221026182240.363055-1-m.grzeschik@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/test_fortify/write_overflow-strcpy.c')
0 files changed, 0 insertions, 0 deletions