9
0
Fork 0
barebox/drivers
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
..
aiodev imx_thermal: Remove leftover debug output 2016-07-15 08:00:36 +02:00
amba amba: check if on remove callback 2015-10-27 16:45:51 +01:00
ata ata: ide-sff: don't call free for ide_port in error path 2017-01-18 12:01:38 +01:00
base regmap: Add regmap_write_bits() function 2017-01-10 08:27:33 +01:00
bus bus: mvebu-mbus: fixup correct device tree 2017-01-17 07:56:27 +01:00
clk clk: imx: clk-imx6ul: Fixed conditional for enabling USB phy clocks 2017-03-03 11:54:18 +01:00
clocksource clocksource: Add rk3288 timer driver 2016-08-26 07:28:31 +02:00
crypto crypto: add i.MX6 CAAM support 2016-02-12 15:55:55 +01:00
dma dma: apbh_dma: add missing array termination 2017-03-06 09:00:49 +01:00
eeprom Merge branch 'for-next/misc' 2016-07-11 07:58:33 +02:00
firmware firmware: altera-serial: simplify handling of optional gpio 2016-09-27 08:10:10 +02:00
gpio Merge branch 'for-next/vybrid' 2017-01-12 07:13:47 +01:00
hab i.MX habv4: add RVT address for i.MX6UL 2017-01-10 08:27:23 +01:00
i2c i.MX: i2c: fix i2c-fsl for non-OF boards 2017-02-14 08:48:25 +01:00
input input: Fix compiler warning 2017-01-10 08:27:33 +01:00
led led: gpio: Free GPIOs on unregister() 2015-04-20 07:00:21 +02:00
mci i.MX: esdhc: fix imx-esdhc driver for non-OF boards 2017-02-14 08:48:34 +01:00
mfd da9053: add dt_ids to be probed by devicetree 2017-01-10 08:27:33 +01:00
misc state: driver: handle EPROBE_DEFER 2016-10-20 09:31:11 +02:00
mtd nand-bb: fix writing to the end of a .bb device 2017-03-02 08:41:53 +01:00
net net/phy: marvell: add support for 88e1510 to marvell phy driver 2017-01-13 07:54:10 +01:00
of Merge branch 'for-next/imx' 2017-02-13 09:26:04 +01:00
pci PCI: split PCI hierarchy enumeration and config from device registration 2016-11-03 07:12:10 +01:00
phy phy: usb-nop-xceiv: Add clock support 2017-01-19 15:21:21 +01:00
pinctrl pinctrl: i.MX7: Fix LPSR sel_imput setting 2017-02-06 11:51:20 +01:00
pwm PWM: update enable status when using the internal API 2017-01-10 08:27:23 +01:00
regulator regulator: Add pfuze driver 2017-01-20 09:10:31 +01:00
reset reset: import socfpga-reset driver from linux 2016-10-18 07:39:02 +02:00
rtc rtc: ds1307: Add support for configuring external clock pin 2016-05-30 07:12:19 +02:00
serial Merge branch 'for-next/imx' 2017-02-13 09:26:04 +01:00
spi spi: i.MX: Add driver for DSPI 2017-01-30 08:09:39 +01:00
usb usb: gadget: properly release f_multi_opts 2017-03-09 09:37:03 +01:00
video video: sdl fix typo 2017-03-06 09:11:51 +01:00
w1 string: Fix (v)asprintf prototypes 2016-04-15 12:21:45 +02:00
watchdog watchdog: i.MX: Fix internal/external reset 2017-01-20 09:10:30 +01:00
Kconfig drivers: Introduce AIODEV subsystem 2016-05-18 07:47:46 +02:00
Makefile drivers: Introduce AIODEV subsystem 2016-05-18 07:47:46 +02:00