diff options
author | Lukasz Majewski <l.majewski@samsung.com> | 2013-06-26 11:46:13 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2013-06-30 18:41:08 +0200 |
commit | e059a400ad780328cd5ad22c396298cac520c856 (patch) | |
tree | 8576ec1b6d6b7287a9a2ef05e8f3454a7f3236d1 /include/sed13806.h | |
parent | 7a3427854243f0e28c102926d203709b3e3cee62 (diff) | |
download | u-boot-imx-e059a400ad780328cd5ad22c396298cac520c856.zip u-boot-imx-e059a400ad780328cd5ad22c396298cac520c856.tar.gz u-boot-imx-e059a400ad780328cd5ad22c396298cac520c856.tar.bz2 |
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>
Diffstat (limited to 'include/sed13806.h')
0 files changed, 0 insertions, 0 deletions