diff options
author | Baruch Siach <baruch@tkos.co.il> | 2019-07-22 18:55:35 +0300 |
---|---|---|
committer | Peng Fan <peng.fan@nxp.com> | 2019-07-31 15:31:36 +0800 |
commit | 41a9fab8dac841afb70a059668abaf14d47cdf59 (patch) | |
tree | acb37f7b8d29f1702f954541b54756b17cdbda4c /api | |
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>
Diffstat (limited to 'api')
0 files changed, 0 insertions, 0 deletions