9
0
Fork 0
barebox/include/usb
Sascha Hauer 2b9bcff79a usb: gadget: properly release f_multi_opts
The usbgadget commands uses statically allocated f_multi_opts and passes
this to usb_multi_register(). These f_multi_opts are of course no
longer valid when we leave the usbgadget command. Luckily we do not use
the data after we left the usbgadget command, so this never has been a
problem. However, f_multi_opts has some allocated members which we can
not free anymore on gadget unregistration because we no longer have the
pointer to them.

Fix this by adding a release function to struct f_multi_opts. This way
we can allocate all memory dynamically and properly free it when not
used anymore.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2017-03-09 09:37:03 +01:00
..
cdc.h Add USB device support 2009-09-25 14:31:26 +02:00
ch9.h USB: gadget: Update to 3.15 2014-07-22 08:08:44 +02:00
ch11.h USB: fixup usb_hub_descriptor length name 2014-07-24 08:57:57 +02:00
chipidea-imx.h usb: imx: Make usb-misc multi instance safe 2017-01-19 15:16:30 +01:00
composite.h Introduce include/linux/spinlock.h 2016-02-01 09:16:13 +01:00
dfu.h USB: gadget: DFU: register as USB function 2014-07-22 08:11:49 +02:00
ehci.h usb: ehci: forward phy given in registration data to host 2016-09-29 13:57:14 +02:00
fastboot.h USB: gadget: Add Android fastboot support 2014-07-24 08:32:56 +02:00
fsl_usb2.h usb: chipidea: Add udc unregister for device removal 2015-09-23 10:31:33 +02:00
gadget-multi.h usb: gadget: properly release f_multi_opts 2017-03-09 09:37:03 +01:00
gadget.h usb: gadget: include common.h in header 2015-03-06 07:51:47 +01:00
musb.h USB: Add MUSB driver from Linux 2014-09-26 21:36:58 +02:00
phy.h USB: add usb phy header file 2014-09-26 08:49:21 +02:00
twl4030.h usb: add twl4030 phy support 2010-08-06 19:17:36 +02:00
ulpi.h USB ULPI: Add more register/bit defines 2012-12-17 08:42:13 +01:00
usb.h usb: Add usb phy to usb host 2016-09-29 13:57:14 +02:00
usb_defs.h USB: remove redundant defines from usb_defs.h 2014-07-24 08:57:57 +02:00
usbnet.h Merge branch 'for-next/remove-fsf-address' 2012-10-03 21:12:48 +02:00
usbserial.h USB: gadget: specify vendor/product id with device parameters 2014-07-22 08:09:28 +02:00
xhci.h USB: host: add xHCI HCD, Hub, and platform driver 2014-07-28 07:31:18 +02:00