MLK-20663 imx8: Fix malloc issue in container parser
authorYe Li <ye.li@nxp.com>
Thu, 27 Dec 2018 05:42:24 +0000 (21:42 -0800)
committerYe Li <ye.li@nxp.com>
Fri, 24 May 2019 10:38:42 +0000 (03:38 -0700)
commit5a2083156c1c29abbbbd9688114aac950a5736df
tree3326c1c35d3ab4e9671330b1f40a39843ba8da5b
parentb4ebefe7b0d6252f1c210d7f5f84b3c63d383530
MLK-20663 imx8: Fix malloc issue in container parser

The size used for malloc is wrong, the following read function will
read 1KB to the container header buffer not the size of the header.

Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit cedcc6634ba143f665bf5dac3926b1b74a403479)
arch/arm/mach-imx/imx8/parser.c