dmaengine/amba-pl08x: Check txd->llis_va before freeing dma_pool
authorViresh Kumar <viresh.kumar@st.com>
Fri, 5 Aug 2011 10:02:44 +0000 (15:32 +0530)
committerVinod Koul <vinod.koul@intel.com>
Mon, 19 Sep 2011 09:43:16 +0000 (15:13 +0530)
commitc12056466d76cdff884402d15f077dd0586e5215
treeb166b5a86426519859d20978445b4e3390317d8a
parentb7f69d9d4283cfbbf7458962cf9bdba6463b831d
dmaengine/amba-pl08x: Check txd->llis_va before freeing dma_pool

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