]> git.baikalelectronics.ru Git - uboot.git/commit
mmc: mv_sdhci: zero out sdhci_host structure
authorMatt Pelland <mpelland@starry.com>
Mon, 16 Apr 2018 14:08:18 +0000 (10:08 -0400)
committerStefan Roese <sr@denx.de>
Tue, 17 Apr 2018 08:39:30 +0000 (10:39 +0200)
commit3c9b98cff73f635ff42c4b41033f886855f44013
tree1256619bd4f1f291854685ca4c9341268308da2f
parentf42b412aa9e3513d123cbbcd18c6c10937630134
mmc: mv_sdhci: zero out sdhci_host structure

The mv_sdhci driver was not zeroing the sdhci_host structure it
allocates causing random access violations in parts of the mmc core
where the "ops" member pointers are checked and called if not NULL.

Signed-off-by: Matt Pelland <mpelland@starry.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Signed-off-by: Stefan Roese <sr@denx.de>
drivers/mmc/mv_sdhci.c