commit | cddbfd4fe255174c0fb6afbb9d7a5d110ecdf319 | [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 | a35de5acb179c4c25aece81fa3d11bdc0cb19ed1 [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>