Commit 10f41750 authored by Federico Vaga's avatar Federico Vaga

sw:drv: release current tx on abort

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 15dfd2a9
......@@ -540,6 +540,9 @@ static void gn412x_dma_tx_free(struct gn412x_dma_tx *tx)
struct gn412x_dma_device *gn412x_dma;
int i;
if (unlikely(!tx))
return;
gn412x_dma = to_gn412x_dma_device(tx->tx.chan->device);
for (i = 0; i < tx->sg_len; ++i) {
dma_addr_t phys;
......@@ -663,6 +666,8 @@ static int gn412x_dma_terminate_all(struct dma_chan *chan)
tx->tx.callback_result(tx->tx.callback_param, &result);
}
gn412x_dma_tx_free(tx);
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment