]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
mmc: bcm2835_sdhci: Use calloc to allocate bcm2835_sdhci_host
authorAlexander Stein <alexanders83@web.de>
Fri, 17 Apr 2015 15:33:17 +0000 (17:33 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:37:10 +0000 (22:37 +0200)
commit17af903757e37f9d6374bb942dda5537ea4d2af0
tree279547465f039712d9af89b4fc8baf1fdc45e3e3
parentd59016d3d9708e24a938572fed791bfd5ff5a7f7
mmc: bcm2835_sdhci: Use calloc to allocate bcm2835_sdhci_host

We need to clear the allocated memory explicitly as the included
struct sdhci_host has function pointers. Those are compared to NULL to
test if this (optional) feature is supported. Leaving them undefined let
u-boot jump to arbitrary memory.

Signed-off-by: Alexander Stein <alexanders83@web.de>
drivers/mmc/bcm2835_sdhci.c