Skip to content

Commit c113bcc

Browse files
krzkgregkh
authored andcommitted
soc: mediatek: mtk-devapc: Fix leaking IO map on driver remove
[ Upstream commit c9c0036 ] Driver removal should fully clean up - unmap the memory. Fixes: 0890beb ("soc: mediatek: add mt6779 devapc driver") Cc: stable@vger.kernel.org Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20250104142012.115974-2-krzysztof.kozlowski@linaro.org Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent c3fa28e commit c113bcc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/soc/mediatek/mtk-devapc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ static void mtk_devapc_remove(struct platform_device *pdev)
290290
struct mtk_devapc_context *ctx = platform_get_drvdata(pdev);
291291

292292
stop_devapc(ctx);
293+
iounmap(ctx->infra_base);
293294
}
294295

295296
static struct platform_driver mtk_devapc_driver = {

0 commit comments

Comments
 (0)