From 74323c347abc6e7cdfeb5b7dba657db645b909b3 Mon Sep 17 00:00:00 2001 From: Taekki Kim Date: Mon, 9 Jan 2017 13:07:34 +0900 Subject: [PATCH] dma: pl330: add critical section for list operation Change-Id: I8505ac36fcc13a9d0c376bd4dba7fae6558f50cb Signed-off-by: Taekki Kim --- drivers/dma/pl330.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.20.1