Home
last modified time | relevance | path

Searched hist:e059a400ad780328cd5ad22c396298cac520c856 (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/usb/gadget/
H A Df_dfu.ce059a400ad780328cd5ad22c396298cac520c856 Wed Jun 26 09:46:13 UTC 2013 Lukasz Majewski <l.majewski@samsung.com> 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>