[U-Boot] [PATCH] driver: fsl-mc: memset pointers after malloc

York Sun york.sun at nxp.com
Fri Oct 6 15:14:52 UTC 2017


On 10/06/2017 04:06 AM, Prabhakar Kushwaha wrote:
> Memory allocated via malloc is not guaranteed to be zeroized.
> 
> So explicitly memset the memory allocated via malloc.
> 
> Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha at nxp.com>
> ---

Have you tried calloc()?

York


More information about the U-Boot mailing list