]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: ti: k3-udma: Use the channel direction in pause/resume functions
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Fri, 14 Feb 2020 09:14:40 +0000 (11:14 +0200)
committerVinod Koul <vkoul@kernel.org>
Wed, 19 Feb 2020 07:39:11 +0000 (13:09 +0530)
commit43ede738900ebfc70f8bb15436aedcee37e47eb1
tree61e23b05d98fafe3b1a14cb0ca3dc8d0e15cb237
parent2814d9e08075623cdf632357f6d6452951ebe68d
dmaengine: ti: k3-udma: Use the channel direction in pause/resume functions

It should be possible to pause, resume and check the pause state of a
channel even if we do not have active transfer.

udma_is_chan_paused() can trigger NULL pointer reference in it's current
form when the status is checked while uc->desc is NULL.

Fixes: 9d55aede00629 ("dmaengine: ti: New driver for K3 UDMA")
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/20200214091441.27535-6-peter.ujfalusi@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/ti/k3-udma.c