Skip to content

Commit 7ae6d7b

Browse files
Peter Ujfalusivinodkoul
authored andcommitted
dmaengine: ti: k3-udma: Use proper return code in alloc_chan_resources
In udma_alloc_chan_resources() if the channel is not willing to stop then the function should return with error code. Signed-off-by: Peter Ujfalusi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 6fea873 commit 7ae6d7b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/dma/ti/k3-udma.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1850,6 +1850,7 @@ static int udma_alloc_chan_resources(struct dma_chan *chan)
18501850
udma_stop(uc);
18511851
if (udma_is_chan_running(uc)) {
18521852
dev_err(ud->dev, "chan%d: won't stop!\n", uc->id);
1853+
ret = -EBUSY;
18531854
goto err_res_free;
18541855
}
18551856
}

0 commit comments

Comments
 (0)