summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Jun <b47624@freescale.com>2014-10-15 11:44:12 +0800
committerLi Jun <b47624@freescale.com>2014-10-15 12:41:04 +0800
commit26f22ea699e619c173db940a1c3dc1f9787aefc4 (patch)
treee45002df7556701a963344ae093a4126ba0e383f
parentc56e993f168b84b92ee4bd204b895b349e1397f9 (diff)
MLK-9655-1 mm: dma: remove duplicated list_add for dma page_list
Since pool_alloc_page_nonbufferable already do list_add, so dma_pool_alloc_nonbufferable cannot do it again, which will result in page_list mess and kernel panic when destory pool of memory block alloced by dma_pool_alloc_nonbufferable. This patch also can fix MLK-9656. Signed-off-by: Peng Fushi <fushi.peng@freescale.com> Signed-off-by: Li Jun <b47624@freescale.com>
-rw-r--r--mm/dmapool.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/mm/dmapool.c b/mm/dmapool.c
index 7b4bdf6bc1fb..567232e5d48c 100644
--- a/mm/dmapool.c
+++ b/mm/dmapool.c
@@ -396,8 +396,6 @@ void *dma_pool_alloc_nonbufferable(struct dma_pool *pool, gfp_t mem_flags,
return NULL;
spin_lock_irqsave(&pool->lock, flags);
-
- list_add(&page->page_list, &pool->page_list);
ready:
page->in_use++;
offset = page->offset;