lkml.org 
[lkml]   [2018]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH AUTOSEL for 4.9 099/293] mmc: mediatek: Fixed size in dma_free_coherent
    Date
    From: Phong LE <ple@baylibre.com>

    [ Upstream commit 16f2e0c6ffdfaf964bb0a6d5e67253a1c8116f0e ]

    The dma gpd dma_free_coherent call size in invalid.

    Fixes: 208489032bdd ("mmc: mediatek: Add Mediatek MMC driver")
    Signed-off-by: Phong LE <ple@baylibre.com>
    Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
    Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
    Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
    ---
    drivers/mmc/host/mtk-sd.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c
    index 6f9535e5e584..a04ebef80abe 100644
    --- a/drivers/mmc/host/mtk-sd.c
    +++ b/drivers/mmc/host/mtk-sd.c
    @@ -1647,7 +1647,7 @@ static int msdc_drv_remove(struct platform_device *pdev)
    pm_runtime_disable(host->dev);
    pm_runtime_put_noidle(host->dev);
    dma_free_coherent(&pdev->dev,
    - sizeof(struct mt_gpdma_desc),
    + 2 * sizeof(struct mt_gpdma_desc),
    host->dma.gpd, host->dma.gpd_addr);
    dma_free_coherent(&pdev->dev, MAX_BD_NUM * sizeof(struct mt_bdma_desc),
    host->dma.bd, host->dma.bd_addr);
    --
    2.15.1
    \
     
     \ /
      Last update: 2018-04-09 04:25    [W:3.901 / U:0.396 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site