From: Taekki Kim Date: Mon, 9 Jan 2017 04:07:34 +0000 (+0900) Subject: dma: pl330: add critical section for list operation X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=74323c347abc6e7cdfeb5b7dba657db645b909b3;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git dma: pl330: add critical section for list operation Change-Id: I8505ac36fcc13a9d0c376bd4dba7fae6558f50cb Signed-off-by: Taekki Kim --- diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index 48d5e03cd318..b5268355ea94 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c @@ -2169,7 +2169,9 @@ static void pl330_tasklet(unsigned long data) } } else { desc->status = FREE; + spin_lock(&pch->dmac->pool_lock); list_move_tail(&desc->node, &pch->dmac->desc_pool); + spin_unlock(&pch->dmac->pool_lock); } dma_descriptor_unmap(&desc->txd);