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>