Commit 2782bbc5 authored by Stephan Lachowsky's avatar Stephan Lachowsky Committed by Greg Kroah-Hartman
Browse files

uvcvideo: Fix uvc_fixup_video_ctrl() format search



commit 38a66824 upstream.

The scheme used to index format in uvc_fixup_video_ctrl() is not robust:
format index is based on descriptor ordering, which does not necessarily
match bFormatIndex ordering.  Searching for first matching format will
prevent uvc_fixup_video_ctrl() from using the wrong format/frame to make
adjustments.

Signed-off-by: default avatarStephan Lachowsky <stephan.lachowsky@maxim-ic.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 3c923393
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment