u-boot-brain/drivers/usb/gadget
Lukasz Majewski e059a400ad dfu:function: Fix number of allocated DFU function pointers
This subtle change fix problem with too small amount of allocated
memory to store DFU function pointers.

One needs to allocate extra space for sentinel NULL pointer in this array
of function pointers.

With the previous code, the NULL value overwrites malloc internal data
and afterwards free(f_dfu->function) crashes.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Marek Vasut <marex@denx.de>
2013-06-30 18:41:08 +02:00
..
composite.c usb:composite: use memcpy to avoid unaligned access 2013-06-30 18:41:07 +02:00
config.c linux/usb/ch9.h: update with the version from Linux tree 2012-11-20 00:16:06 +01:00
core.c Enable high speed support for USB device framework and usbtty 2012-03-28 16:31:08 +02:00
designware_udc.c USB:gadget:designware Fix memory nonalignment issue 2012-03-19 00:08:17 +01:00
ep0.c Enable high speed support for USB device framework and usbtty 2012-03-28 16:31:08 +02:00
ep0.h drivers/usb: regorganisation 2009-04-06 20:40:46 +02:00
epautoconf.c linux/usb/ch9.h: update with the version from Linux tree 2012-11-20 00:16:06 +01:00
ether.c linux/usb/ch9.h: update with the version from Linux tree 2012-11-20 00:16:06 +01:00
f_dfu.c dfu:function: Fix number of allocated DFU function pointers 2013-06-30 18:41:08 +02:00
f_dfu.h dfu:usb: DFU USB function (f_dfu) support for g_dnl composite gadget 2012-09-01 16:21:50 +02:00
f_mass_storage.c drivers:usb: use get|put_unaligned_le16 2013-06-30 18:41:07 +02:00
fotg210.c usb: gadget: add Faraday FOTG210 USB gadget support 2013-06-12 22:22:52 +02:00
g_dnl.c usb, g_dnl: make possibility to fixup the device_desc board specific 2013-06-30 18:41:07 +02:00
gadget_chips.h usb: gadget: add Faraday FOTG210 USB gadget support 2013-06-12 22:22:52 +02:00
Makefile usb: gadget: add Faraday FOTG210 USB gadget support 2013-06-12 22:22:52 +02:00
mpc8xx_udc.c drivers/usb: regorganisation 2009-04-06 20:40:46 +02:00
mv_udc.c USB: gadaget: add Marvell controller support 2011-12-11 14:40:38 +01:00
ndis.h USB: Add USB RNDIS gadget protocol 2011-02-19 20:32:37 +01:00
omap1510_udc.c drivers/usb: regorganisation 2009-04-06 20:40:46 +02:00
pxa25x_udc.c usb: gadget: Use unaligned access for wMaxPacketSize 2013-06-12 22:22:51 +02:00
pxa25x_udc.h pxa25x: Add support for USB ethernet gadget 2012-10-15 11:54:01 -07:00
pxa27x_udc.c pxa27x_udc: remove call to unimplemented set_GPIO_mode() 2013-05-05 23:47:05 +02:00
regs-otg.h usb:gadget:s5p USB Device Controller (UDC) implementation 2011-12-11 14:44:40 +01:00
rndis.c Coding Style cleanup: remove trailing empty lines 2011-03-27 21:48:08 +02:00
rndis.h USB-RNDIS: Send RNDIS state on disconnecting 2011-02-19 20:32:38 +01:00
s3c_udc_otg_xfer_dma.c usb:udc:samsung:cleanup Replace DEBUG_* macros with debug_cond() calls 2012-05-20 08:32:33 +02:00
s3c_udc_otg.c linux/usb/ch9.h: update with the version from Linux tree 2012-11-20 00:16:06 +01:00
storage_common.c usb:composite: USB Mass Storage - storage_common.c from Linux kernel 2013-03-18 18:58:53 +01:00
usbstring.c linux/usb/ch9.h: update with the version from Linux tree 2012-11-20 00:16:06 +01:00