Skip to content
Snippets Groups Projects
Commit ebe78bb9 authored by Alexander Stein's avatar Alexander Stein Committed by Pantelis Antoniou
Browse files

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: default avatarAlexander Stein <alexanders83@web.de>
parent 253d5bdd
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment