summaryrefslogtreecommitdiff
path: root/include/linux/posix_types.h
diff options
context:
space:
mode:
authorLukasz Majewski <l.majewski@samsung.com>2013-06-26 09:46:13 (GMT)
committerMarek Vasut <marex@denx.de>2013-06-30 16:41:08 (GMT)
commite059a400ad780328cd5ad22c396298cac520c856 (patch)
tree8576ec1b6d6b7287a9a2ef05e8f3454a7f3236d1 /include/linux/posix_types.h
parent7a3427854243f0e28c102926d203709b3e3cee62 (diff)
downloadu-boot-e059a400ad780328cd5ad22c396298cac520c856.tar.xz
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/linux/posix_types.h')
0 files changed, 0 insertions, 0 deletions