projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7f69d9
)
dmaengine/amba-pl08x: Check txd->llis_va before freeing dma_pool
author
Viresh Kumar
<viresh.kumar@st.com>
Fri, 5 Aug 2011 10:02:44 +0000
(15:32 +0530)
committer
Vinod Koul
<vinod.koul@intel.com>
Mon, 19 Sep 2011 09:43:16 +0000
(15:13 +0530)
In pl08x_free_txd(), check if pool is allocated successfully before freeing it.
Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/amba-pl08x.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/dma/amba-pl08x.c
b/drivers/dma/amba-pl08x.c
index 2c390d1b9cadab8eab09bd0afe249fbd8830daca..b7cbd1ab1db1ffd7d951f67331e6a32d729ade21 100644
(file)
--- a/
drivers/dma/amba-pl08x.c
+++ b/
drivers/dma/amba-pl08x.c
@@
-803,7
+803,8
@@
static void pl08x_free_txd(struct pl08x_driver_data *pl08x,
struct pl08x_sg *dsg, *_dsg;
/* Free the LLI */
- dma_pool_free(pl08x->pool, txd->llis_va, txd->llis_bus);
+ if (txd->llis_va)
+ dma_pool_free(pl08x->pool, txd->llis_va, txd->llis_bus);
pl08x->pool_ctr--;