commit | 41a9fab8dac841afb70a059668abaf14d47cdf59 | [log] [tgz] |
---|---|---|
author | Baruch Siach <baruch@tkos.co.il> | Mon Jul 22 18:55:35 2019 +0300 |
committer | Peng Fan <peng.fan@nxp.com> | Wed Jul 31 15:31:36 2019 +0800 |
tree | acb37f7b8d29f1702f954541b54756b17cdbda4c | |
parent | 09da18deab8b56524934c9d1050edaaf53e2e8ae [diff] |
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 mmc pointer dereference. Fixes: 3d296365e4e8 ("mmc: sdhci: Add support for sdhci-caps-mask") Cc: Faiz Abbas <faiz_abbas@ti.com> Signed-off-by: Baruch Siach <baruch@tkos.co.il>