Searched hist:a59c68a6a3d1b18e2494f526eb19893a34fa6ec6 (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/usb/gadget/function/ |
H A D | f_uac1.c | diff a59c68a6a3d1b18e2494f526eb19893a34fa6ec6 Mon Mar 01 12:49:34 CET 2021 Ruslan Bilovol <ruslan.bilovol@gmail.com> usb: gadget: f_uac1: validate input parameters
Currently user can configure UAC1 function with parameters that violate UAC1 spec or are not supported by UAC1 gadget implementation.
This can lead to incorrect behavior if such gadget is connected to the host - like enumeration failure or other issues depending on host's UAC1 driver implementation, bringing user to a long hours of debugging the issue.
Instead of silently accept these parameters, throw an error if they are not valid.
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@gmail.com> Link: https://lore.kernel.org/r/1614599375-8803-5-git-send-email-ruslan.bilovol@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|