]> git.baikalelectronics.ru Git - uboot.git/commit
ARM: dw_mmc: Exclude dwmci Exynos priv_data allocation from exynos_dwmci_get_config()
authorLukasz Majewski <lukma@denx.de>
Wed, 1 Aug 2018 12:48:53 +0000 (14:48 +0200)
committerMinkyu Kang <mk7.kang@samsung.com>
Mon, 6 Aug 2018 01:53:53 +0000 (10:53 +0900)
commit74de589008d9b6f8c219db72caa85616aaa0e35a
treecfedf54f5a0c287ac27076cb7178099c217aa626
parent432984d045b235144a61607d0496ef15be8ff84a
ARM: dw_mmc: Exclude dwmci Exynos priv_data allocation from exynos_dwmci_get_config()

This commit prevents memory leak when this function is used with DM_MMC
as the struct dwmci_exynos_priv_data is already allocated by DM.

It is necessary for NON DM aware devices to allocate this struct first.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
Tested-by: Anand Moon <linux.amoon@gmail.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
drivers/mmc/exynos_dw_mmc.c