commit | ded48bec0568c7e94d3ef5ea10b13a46d0fd26a6 | [log] [tgz] |
---|---|---|
author | Patrick Delaunay <patrick.delaunay@st.com> | Mon Jul 06 13:20:58 2020 +0200 |
committer | Patrice Chotard <patrice.chotard@st.com> | Tue Jul 28 17:43:46 2020 +0200 |
tree | a29481523880abc2e560c979ac51a77c8a1a224d | |
parent | 4b64265bb472fba6c820eb81074221c4bd485ba2 [diff] |
arm: stm32mp: stm32prog: check result of find_mmc_device Check result of find_mmc_device() before calling mmc_init(). This patch avoid a data abort when the command try to acces to sd/mmc device deactivated in device tree. Fixes: aff4c5dd8265 ("stm32mp: stm32prog: add MMC device") Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Patrice Chotard <patrice.chotard@st.com>