|
@@ -803,7 +803,8 @@ static void pl08x_free_txd(struct pl08x_driver_data *pl08x,
|
|
struct pl08x_sg *dsg, *_dsg;
|
|
struct pl08x_sg *dsg, *_dsg;
|
|
|
|
|
|
/* Free the LLI */
|
|
/* 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--;
|
|
pl08x->pool_ctr--;
|
|
|
|
|