Christophe JAILLET
018af9be3d
dmaengine: ti: k3-udma-glue: Fix an error handling path in 'k3_udma_glue_cfg_rx_flow()'
...
All but one error handling paths in the 'k3_udma_glue_cfg_rx_flow()'
function 'goto err' and call 'k3_udma_glue_release_rx_flow()'.
This not correct because this function has a 'channel->flows_ready--;' at
the end, but 'flows_ready' has not been incremented here, when we branch to
the error handling path.
In order to keep a correct value in 'flows_ready', un-roll
'k3_udma_glue_release_rx_flow()', simplify it, add some labels and branch
at the correct places when an error is detected.
Doing so, we also NULLify 'flow->udma_rflow' in a path that was lacking it.
Fixes: d70241913413 ("dmaengine: ti: k3-udma: Add glue layer for non DMAengine user")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/20200318191209.1267-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2020-03-23 11:48:34 +05:30
..
2019-06-19 17:09:55 +02:00
2019-10-14 13:51:44 +05:30
2019-12-26 10:04:18 +05:30
2019-07-22 20:58:15 +05:30
2019-11-02 22:03:01 +05:30
2019-07-17 09:55:43 -07:00
2020-03-23 11:32:06 +05:30
2020-01-27 10:55:50 -08:00
2019-06-19 17:09:55 +02:00
2019-12-26 10:04:18 +05:30
2019-05-21 11:28:40 +02:00
2019-10-18 13:27:58 +05:30
2019-12-26 10:04:18 +05:30
2019-10-14 12:26:58 +05:30
2020-03-23 11:48:34 +05:30
2020-01-21 14:49:30 +05:30
2019-08-21 09:41:27 +05:30
2020-01-06 09:45:59 +01:00
2019-07-17 09:55:43 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-10-14 13:21:20 +05:30
2019-12-26 10:04:18 +05:30
2019-06-14 11:14:58 +05:30
2019-05-30 11:29:22 -07:00
2020-02-24 21:59:45 +05:30
2019-05-30 11:29:22 -07:00
2019-12-11 16:11:50 +05:30
2020-01-27 10:55:50 -08:00
2020-03-11 14:42:59 +05:30
2020-01-21 15:05:29 +05:30
2019-09-04 10:14:22 +05:30
2019-05-30 11:26:32 -07:00
2017-06-29 09:25:28 +05:30
2015-04-02 16:10:27 +05:30
2019-12-18 11:55:46 +05:30
2019-12-18 11:55:46 +05:30
2019-12-18 11:55:46 +05:30
2020-01-21 13:15:37 +05:30
2019-08-20 19:42:34 -05:00
2019-05-24 17:27:12 +02:00
2020-01-24 11:18:45 +05:30
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-05 17:37:15 +02:00
2019-07-31 20:49:04 +05:30
2020-02-25 14:15:26 +05:30
2019-11-14 10:27:37 +05:30
2019-08-14 15:36:22 +02:00
2019-12-23 13:21:14 +05:30
2020-01-24 11:18:45 +05:30
2019-06-19 17:09:55 +02:00
2020-01-24 11:18:45 +05:30
2019-07-03 13:28:22 +05:30
2019-07-17 09:55:43 -07:00
2019-06-05 17:36:38 +02:00
2019-11-08 09:26:17 +05:30
2019-11-08 09:26:17 +05:30
2019-11-22 10:51:30 +05:30
2019-11-22 10:51:29 +05:30
2018-06-06 11:15:43 -07:00
2019-05-21 11:28:40 +02:00
2020-02-04 03:05:27 +00:00
2019-06-05 17:36:37 +02:00
2019-06-05 17:36:37 +02:00
2019-07-17 09:55:43 -07:00
2019-04-29 10:47:15 +05:30
2020-01-21 15:05:29 +05:30
2019-12-26 10:04:18 +05:30
2019-05-30 11:26:41 -07:00
2019-12-10 11:39:04 +05:30
2020-01-15 19:40:51 +05:30
2019-07-17 09:55:43 -07:00
2020-01-23 17:03:25 +05:30
2019-06-19 17:09:55 +02:00
2019-05-21 11:28:40 +02:00
2019-11-14 16:03:35 +05:30
2019-07-31 20:50:53 +05:30
2019-05-30 11:26:32 -07:00
2019-05-30 11:29:22 -07:00
2019-05-30 11:29:22 -07:00
2019-07-22 20:58:33 +05:30
2019-09-04 10:25:08 +05:30
2019-07-29 12:25:21 +05:30
2019-09-17 19:04:40 -07:00
2020-01-21 14:04:29 +05:30
2019-07-31 20:50:53 +05:30
2020-02-25 11:57:09 +05:30
2019-10-14 12:40:38 +05:30
2019-05-30 11:26:41 -07:00
2014-07-15 22:14:30 +05:30
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-10-11 15:45:41 +05:30
2020-01-27 10:55:50 -08:00
2019-12-26 10:04:18 +05:30
2019-07-31 20:50:53 +05:30
2019-11-14 12:16:53 +05:30