TencentOS-kernel/drivers/usb/gadget/function
Dean Anderson 04525c3652 usb: gadget/function/f_fs string table fix for multiple languages
commit 55b74ce7d2ce0b0058f3e08cab185a0afacfe39e upstream.

Fixes bug with the handling of more than one language in
the string table in f_fs.c.
str_count was not reset for subsequent language codes.
str_count-- "rolls under" and processes u32 max strings on
the processing of the second language entry.
The existing bug can be reproduced by adding a second language table
to the structure "strings" in tools/usb/ffs-test.c.

Signed-off-by: Dean Anderson <dean@sensoray.com>
Link: https://lore.kernel.org/r/20210317224109.21534-1-dean@sensoray.com
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-05-20 16:07:37 +08:00
..
Makefile
f_acm.c USB: gadget: f_acm: add support for SuperSpeed Plus 2021-03-16 16:42:31 +08:00
f_ecm.c
f_eem.c
f_fs.c usb: gadget/function/f_fs string table fix for multiple languages 2021-05-20 16:07:37 +08:00
f_hid.c
f_loopback.c
f_mass_storage.c
f_mass_storage.h
f_midi.c USB: gadget: f_midi: setup SuperSpeed Plus descriptors 2021-03-16 16:42:31 +08:00
f_ncm.c usb: gadget: f_ncm: allow using NCM in SuperSpeed Plus gadgets. 2021-03-16 16:39:27 +08:00
f_obex.c
f_phonet.c
f_printer.c usb: gadget: function: printer: Fix a memory leak for interface descriptor 2021-04-12 12:51:12 +08:00
f_rndis.c USB: gadget: f_rndis: fix bitrate for SuperSpeed and above 2021-03-16 16:42:32 +08:00
f_serial.c
f_sourcesink.c
f_subset.c
f_tcm.c usb: gadget: f_tcm: Fix some resource leaks in some error paths 2021-03-16 16:35:02 +08:00
f_uac1.c usb: gadget: f_uac1: validate input parameters 2021-05-20 16:07:24 +08:00
f_uac1_legacy.c
f_uac2.c usb: gadget: f_uac2: validate input parameters 2021-05-20 16:07:24 +08:00
f_uvc.c usb: webcam: Invalid size of Processing Unit Descriptor 2021-05-20 16:07:23 +08:00
f_uvc.h
g_zero.h
ndis.h
rndis.c
rndis.h
storage_common.c
storage_common.h
tcm.h
u_audio.c usb: gadget: u_audio: Free requests only after callback 2021-04-12 12:52:13 +08:00
u_audio.h
u_ecm.h
u_eem.h
u_ether.c usb: gadget: u_ether: Fix MTU size mismatch with RX packet size 2021-04-12 12:51:12 +08:00
u_ether.h
u_ether_configfs.h USB: gadget: u_ether: Fix a configfs return code 2021-04-12 12:53:06 +08:00
u_fs.h
u_gether.h
u_hid.h
u_midi.h
u_ncm.h
u_phonet.h
u_printer.h
u_rndis.h
u_serial.c
u_serial.h
u_tcm.h
u_uac1.h
u_uac1_legacy.c
u_uac1_legacy.h
u_uac2.h
u_uvc.h
uvc.h
uvc_configfs.c
uvc_configfs.h
uvc_queue.c
uvc_queue.h
uvc_v4l2.c
uvc_v4l2.h
uvc_video.c
uvc_video.h