summaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-ti.c
diff options
context:
space:
mode:
authorRuslan Bilovol <ruslan.bilovol@gmail.com>2021-03-01 13:49:33 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-03-23 12:54:56 +0100
commit3713d5ceb04d5ab6a5e2b86dfca49170053f3a5e (patch)
treec5c620f01c385c2fcec4c9e61ca85095e85f4842 /drivers/usb/cdns3/cdns3-ti.c
parentc021e02357703b959e20c458d64b6d4e0d5b8012 (diff)
usb: gadget: f_uac2: validate input parameters
Currently user can configure UAC2 function with parameters that violate UAC2 spec or are not supported by UAC2 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 UAC2 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-4-git-send-email-ruslan.bilovol@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-ti.c')
0 files changed, 0 insertions, 0 deletions