Browse Source

dmaengine: ti: k3-navss-udma: fix k3_nav_udmax_release_rx_flow()

Reset struct k3_nav_udmax_rx_flow->udma_rflow to avoid double calling of
xudma_rflow_put().

Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Grygorii Strashko 6 years ago
parent
commit
93b4d705ae
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/dma/ti/k3-navss-udma.c

+ 1 - 0
drivers/dma/ti/k3-navss-udma.c

@@ -603,6 +603,7 @@ static void k3_nav_udmax_release_rx_flow(struct k3_nav_udmax_rx_channel *rx_chn,
 		k3_ringacc_ring_free(flow->ringrx);
 
 	xudma_rflow_put(rx_chn->common.udmax, flow->udma_rflow);
+	flow->udma_rflow = NULL;
 	rx_chn->flows_ready--;
 }