mmc: mediatek: Fixed size in dma_free_coherent
Subsystems (3)
PATCH 1/1 mmc: mediatek: Fixed size in dma_free_coherent
From: Phong LE <[email protected]>
The dma gpd dma_free_coherent call size in invalid.
Fixes 208489032bdd ("mmc: mediatek: Add Mediatek MMC driver")
Signed-off-by Phong LE <[email protected]>
Signed-off-by Neil Armstrong <[email protected]>
--- drivers/mmc/host/mtk-sd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/host/mtk-sd.c +1 -1
@@ -1774,7 +1774,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);
Signature · 1 line
2.7.4
Ulf Hansson
AppliedQuoted 7 lines · Neil Armstrong
From: Phong LE <[email protected]>
The dma gpd
dma_free_coherentcall size in invalid.Fixes 208489032bdd ("mmc: mediatek: Add Mediatek MMC driver")Signed-off-by Phong LE <[email protected]>Signed-off-by Neil Armstrong <[email protected]>
Thanks, applied for next!
Kind regards
Uffe
Quoted 20 lines
--- drivers/mmc/host/mtk-sd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/mmc/host/mtk-sd.c +1
-2@@ -1774,7 +1774,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.7.4