diff options
| author | Sam Protsenko <[email protected]> | 2024-08-07 22:14:24 -0500 |
|---|---|---|
| committer | Minkyu Kang <[email protected]> | 2024-08-19 16:09:06 +0900 |
| commit | c61f92eeb66ede2738bf3d766c645eda3fcf05c8 (patch) | |
| tree | 1add65ec1ea2dc956fda97ef2d58faa3e34cf085 /include/linux/kernel.h | |
| parent | ff2b88365d91120d63434e1b616da739066b11df (diff) | |
mmc: exynos_dw_mmc: Fix getting private data in exynos_dwmci_board_init()
In case of CONFIG_DM_MMC, host->priv actually holds (struct udevice *),
and not (struct dwmci_exynos_priv_data *). This makes *priv pointer
invalid and may lead to Synchronous Abort during its dereference later
in exynos_dwmci_board_init(). Fix it by extracting
exynos_dwmmc_get_priv() helper from exynos_dwmci_clksel() and using it
for getting the private data in exynos_dwmci_board_init()
Fixes: 3537ee879e04 ("mmc: exynos_dw_mmc: support the Driver mode for Exynos")
Signed-off-by: Sam Protsenko <[email protected]>
Signed-off-by: Minkyu Kang <[email protected]>
Diffstat (limited to 'include/linux/kernel.h')
0 files changed, 0 insertions, 0 deletions
