summaryrefslogtreecommitdiff
path: root/include/dm/fdtaddr.h
diff options
context:
space:
mode:
authorLey Foon Tan <ley.foon.tan@intel.com>2018-05-18 18:03:12 +0800
committerTom Rini <trini@konsulko.com>2018-05-26 18:19:19 -0400
commitee038c58d5196dc2eb2be7e08e766c50a7bc2619 (patch)
treecfe825939930789b059107f2dfd4821d84045351 /include/dm/fdtaddr.h
parent635159a090fc44c5200c18bf049873476735578d (diff)
malloc: Use malloc simple before malloc is fully initialized in memalign()
Follow implementation in mALLOc(). Check GD_FLG_FULL_MALLOC_INIT flag and use malloc_simple if GD_FLG_FULL_MALLOC_INIT is unset. Adjust the malloc bytes to align with the requested alignment. The original memalign() function will access mchunkptr struct to adjust the alignment if there is misalignment happen, but mchunkptr struct is not being initialized before full malloc is initialized. This cause the system crash. Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com> Reviewed-by: Marek Vasut <marek.vasut@gmail.com>
Diffstat (limited to 'include/dm/fdtaddr.h')
0 files changed, 0 insertions, 0 deletions