dmaengine: mediatek: Return the correct errno code
Subsystems (3)
PATCH 1/1 dmaengine: mediatek: Return the correct errno code
From: Junlin Yang <[email protected]>
When devm_kzalloc failed, should return ENOMEM rather than ENODEV.
Signed-off-by Junlin Yang <[email protected]>
--- drivers/dma/mediatek/mtk-uart-apdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/mediatek/mtk-uart-apdma.c +1 -1
@@ -529,7 +529,7 @@ static int mtk_uart_apdma_probe(struct platform_device *pdev)for (i =0 ; i < mtkd->dma_requests; i++) { c =devm_kzalloc (mtkd->ddev.dev,sizeof (*c),GFP_KERNEL );if (!c) { - rc = -ENODEV ; + rc = -ENOMEM ; goto err_no_dma; }
Signature · 1 line
1.9.1
Quoted 5 lines · angkery
From: Junlin Yang <[email protected]>
When
devm_kzallocfailed, should return ENOMEM rather than ENODEV.Signed-off-by Junlin Yang <[email protected]>
Reviewed-by Matthias Brugger <[email protected]>
Quoted 18 lines
--- drivers/dma/mediatek/mtk-uart-apdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/dma/mediatek/mtk-uart-apdma.c +1
-1@@ -529,7 +529,7 @@ static int mtk_uart_apdma_probe(struct platform_device *pdev)for (i =0 ; i < mtkd->dma_requests; i++) { c =devm_kzalloc (mtkd->ddev.dev,sizeof (*c),GFP_KERNEL );if (!c) { - rc = -ENODEV ; + rc = -ENOMEM ; goto err_no_dma; }
Quoted 6 lines · angkery
From: Junlin Yang <[email protected]>
When
devm_kzallocfailed, should return ENOMEM rather than ENODEV.Signed-off-by Junlin Yang <[email protected]>
Please add proper fixes tags:
Fixes 9135408c3ace ("dmaengine: mediatek: Add MediaTek UART APDMA support")