driver: fsl-mc: use calloc instead malloc
authorPrabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Wed, 11 Oct 2017 03:21:18 +0000 (08:51 +0530)
committerYork Sun <york.sun@nxp.com>
Fri, 27 Oct 2017 15:38:29 +0000 (08:38 -0700)
commita572fb6bdd6a6fba4892385009edd8a1dd5b9df3
treeda13082c36c50c065004370456b223727b4f7ec7
parent1e0d51a6c4cdd22a75abbdf392484c66ff8a91ea
driver: fsl-mc: use calloc instead malloc

Memory allocated via malloc is not guaranteed to be zeroized.
So explicitly use calloc instead of malloc.

Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
drivers/net/fsl-mc/mc.c