android_kernel_google_msm/drivers/usb/gadget
Andrzej Pietrasiewicz 01935051eb usb: gadget: ffs: fix enable multiple instances
This patch fixes an "off-by-one" bug found in
581791f (FunctionFS: enable multiple functions).

During gfs_bind/gfs_unbind the functionfs_bind/functionfs_unbind should be
called for every functionfs instance. With the "i" pre-decremented they
were not called for the zeroth instance.

Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: <stable@vger.kernel.org>

[ balbi@ti.com : added offending commit's subject ]

Signed-off-by: Felipe Balbi <balbi@ti.com>
Change-Id: Idf19c2d3842546fb0fb47f77f59a248b1caa3fcb
2020-12-14 20:34:12 +01:00
..
Kconfig usb: gadget: Support CDC ECM for android usb 2013-03-04 12:43:38 -08:00
Makefile usb-gadget: Initial merge of target module for UASP + BOT 2013-02-27 18:12:37 -08:00
acm_ms.c
amd5536udc.c
amd5536udc.h
android.c usb: gadget: fix build errors 2020-12-14 20:28:13 +01:00
at91_udc.c usb: gadget: at91-udc: fix irq and iomem resource retrieval 2014-06-07 16:02:01 -07:00
at91_udc.h
atmel_usba_udc.c
atmel_usba_udc.h
audio.c
cdc2.c
ci13xxx_msm.c Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
ci13xxx_msm_hsic.c Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
ci13xxx_pci.c
ci13xxx_udc.c usb: chipidea: udc: fix memory access of shared memory on armv5 machines 2013-06-24 11:27:42 -07:00
ci13xxx_udc.h usb: chipidea: udc: fix memory access of shared memory on armv5 machines 2013-06-24 11:27:42 -07:00
composite.c Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
config.c USB: gadget: composite: Process GetDescriptor(OTG) request 2013-02-25 11:34:55 -08:00
dbgp.c
dummy_hcd.c usb: gadget: dummy: fix enumeration with g_multi 2013-01-17 08:51:05 -08:00
epautoconf.c
ether.c
f_accessory.c fix false disconnect due to a signal sent to the reading process 2014-02-13 14:44:52 -08:00
f_acm.c Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
f_adb.c Revert "use msm8960_defconfig instead of mako_defconfig" 2013-03-15 17:13:29 -07:00
f_audio_source.c USB: gadget: f_audio_source: Rename symbols to avoid conflicts with f_midi 2015-03-16 11:29:50 -07:00
f_ccid.c Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
f_ccid.h Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
f_diag.c USB: gadget: diag: Take spin lock while freeing requests 2013-03-07 15:25:17 -08:00
f_diag.h Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
f_ecm.c Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
f_eem.c usb: gadget: network: fix bind() error path 2013-01-11 09:06:53 -08:00
f_fs.c BACKPORT: Backport ioctl for getting descriptors. 2020-12-14 20:33:59 +01:00
f_hid.c
f_loopback.c
f_mass_storage.c Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
f_mbim.c BACKPORT: usb: gadget: f_mbim: Change %p to %pK in debug messages 2016-12-22 22:05:10 +11:00
f_midi.c Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
f_mtp.c ANDROID: usb: gadget: f_mtp: Return error if count is negative 2018-01-03 14:46:35 +03:00
f_ncm.c usb: gadget: network: fix bind() error path 2013-01-11 09:06:53 -08:00
f_obex.c
f_phonet.c
f_qc_ecm.c Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
f_qc_rndis.c Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
f_qdss.c Fix sizeof-pointer-memaccess warnings 2015-01-06 09:22:29 -08:00
f_qdss.h Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
f_rmnet.c Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
f_rmnet.h Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
f_rmnet_sdio.c Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
f_rmnet_smd.c Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
f_rmnet_smd_sdio.c Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
f_rndis.c Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
f_serial.c usb: gadget: Support multiple HSIC transport instances for dun and rmnet 2013-03-15 17:07:25 -07:00
f_sourcesink.c
f_subset.c usb: gadget: network: fix bind() error path 2013-01-11 09:06:53 -08:00
f_tcm.c USB: gadget: Fix memory leak in UASP function 2013-02-27 18:17:31 -08:00
f_tcm.h USB: gadget: Split Target based USB-Gadget driver (tcm_usb_gadget.c) 2013-02-27 18:16:02 -08:00
f_uac1.c
f_uac2.c
f_uvc.c usb: gadget: uvc: fix error path in uvc_function_bind() 2013-01-11 09:06:53 -08:00
f_uvc.h
file_storage.c
fsl_mxc_udc.c
fsl_qe_udc.c
fsl_qe_udc.h
fsl_udc_core.c
fsl_usb2_udc.h
fusb300_udc.c
fusb300_udc.h
g_ffs.c usb: gadget: ffs: fix enable multiple instances 2020-12-14 20:34:12 +01:00
g_zero.h
gadget_chips.h usb: gadget: Add HSIC peripheral support. 2013-02-25 11:34:54 -08:00
gmidi.c
goku_udc.c
goku_udc.h
hid.c
imx_udc.c
imx_udc.h
inode.c Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
langwell_udc.c
langwell_udc.h
m66592-udc.c
m66592-udc.h
mass_storage.c
msm72k_udc.c Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
multi.c
mv_udc.h
mv_udc_core.c
ncm.c
ndis.h
net2272.c
net2272.h
net2280.c
net2280.h
nokia.c
omap_udc.c
omap_udc.h
pch_udc.c
printer.c
pxa25x_udc.c
pxa25x_udc.h
pxa27x_udc.c
pxa27x_udc.h
r8a66597-udc.c
r8a66597-udc.h
rndis.c Rndis: Don't request Host to send aggregated RNDIS packets 2013-03-07 15:18:58 -08:00
rndis.h usb: gadget: RNDIS function driver for QCOM chipsets 2013-02-27 18:18:34 -08:00
s3c-hsotg.c
s3c-hsudc.c
s3c2410_udc.c
s3c2410_udc.h
serial.c
storage_common.c usb: gadget: mass_storage: added sysfs entry for cdrom to LUNs 2016-10-29 23:12:10 +08:00
tcm_usb_gadget.c USB: gadget: Split Target based USB-Gadget driver (tcm_usb_gadget.c) 2013-02-27 18:16:02 -08:00
u_bam.c usb: gadget: u_bam: Fix NULL pointer dereference crash 2013-03-15 17:08:25 -07:00
u_bam_data.c Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
u_ctrl_hsic.c Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
u_ctrl_hsuart.c Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
u_data_hsic.c usb: diag: change %p to %pK in debug messages 2017-06-26 20:33:55 +03:00
u_data_hsuart.c Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
u_ether.c Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
u_ether.h RNDIS: Add Data aggregation (multi packet) support 2013-02-27 18:14:44 -08:00
u_phonet.h
u_qc_ether.c Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
u_qc_ether.h Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
u_qdss.c Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
u_rmnet.h Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
u_rmnet_ctrl_smd.c Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
u_sdio.c Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
u_serial.c usb: gadget: u_serial: fix typo which cause build warning 2017-10-15 17:05:15 +03:00
u_serial.h gadget: u_serial: Add tiocmset/tiocmget functionality 2013-02-25 11:35:06 -08:00
u_smd.c Update copyright to The Linux Foundation 2013-03-15 17:07:39 -07:00
u_uac1.c
u_uac1.h
udc-core.c Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
usbstring.c
uvc.h
uvc_queue.c
uvc_queue.h
uvc_v4l2.c
uvc_video.c
webcam.c
zero.c