Commit e5fe1a95 authored by Michael Grzeschik's avatar Michael Grzeschik Committed by Treehugger Robot
Browse files

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: default avatarMichael Grzeschik <m.grzeschik@pengutronix.de>

Link: https://lore.kernel.org/r/20220421211427.3400834-4-m.grzeschik@pengutronix.de


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

(cherry picked from commit a350cfb6)
Bug: 242344221
Change-Id: Ieb800223fe0071c7a3650b146a1d0c6f5f7ad8a2
Signed-off-by: default avatarAvichal Rakesh <arakesh@google.com>
(cherry picked from commit fc33d1de)
parent 413bfd5f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment