Re: [U-Boot] [PATCH] mmc: mv_sdhci: fix uninitialized pointer deref on probe

2019-07-23 Thread Peng Fan
> Subject: [PATCH] mmc: mv_sdhci: fix uninitialized pointer deref on probe > > Since commit 3d296365e4e8 ("mmc: sdhci: Add support for > sdhci-caps-mask") sdhci_setup_cfg() expects a valid sdhci_host mmc field. > Move the mmc field initialization before sdhci_setup_cfg() call to avoid crash > on

[U-Boot] [PATCH] mmc: mv_sdhci: fix uninitialized pointer deref on probe

2019-07-22 Thread Baruch Siach
Since commit 3d296365e4e8 ("mmc: sdhci: Add support for sdhci-caps-mask") sdhci_setup_cfg() expects a valid sdhci_host mmc field. Move the mmc field initialization before sdhci_setup_cfg() call to avoid crash on mmc pointer dereference. Fixes: 3d296365e4e8 ("mmc: sdhci: Add support for