UPSTREAM: usb: gadget: uvc: prevent index variables to start from 0
Some configfs variables like bDefaultFrameIndex are always starting by 1. This patch adds a check to prevent setting those variables to 0. Signed-off-by:Michael Grzeschik <m.grzeschik@pengutronix.de> Link: https://lore.kernel.org/r/20220421211427.3400834-4-m.grzeschik@pengutronix.de Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> (cherry picked from commit a350cfb6) Bug: 242344221 Change-Id: Ieb800223fe0071c7a3650b146a1d0c6f5f7ad8a2 Signed-off-by:
Avichal Rakesh <arakesh@google.com> (cherry picked from commit fc33d1de)
Loading
Please sign in to comment