mmc: fsl_esdhc: Check the result from malloc()
authorFabio Estevam <fabio.estevam@freescale.com>
Thu, 12 Sep 2013 13:35:52 +0000 (10:35 -0300)
committerStefano Babic <sbabic@denx.de>
Fri, 20 Sep 2013 15:55:36 +0000 (17:55 +0200)
commit3f786a8b6f586cb19925e2e9cc45fd0dacf40356
treeecba95ba0916d8a83babf430dfb7cd46ddb93561
parent59f46f4a73b13dc500e6cdb13b507f2aa3bc8c45
mmc: fsl_esdhc: Check the result from malloc()

malloc can fail, so we should better check its return value before using it.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
drivers/mmc/fsl_esdhc.c